tools fixed

This commit is contained in:
asoseil 2017-10-16 14:01:41 +02:00
parent 9e3408bcf5
commit e5e8ff5030

View File

@ -182,7 +182,7 @@ func (p *Project) command(stop <-chan bool, cmd Command) (string, string) {
func (p *Project) goTool(wg *sync.WaitGroup, stop <-chan bool, result chan<- tool, path string, tool tool) {
defer wg.Done()
if tool.status {
if tool.dir {
if tool.dir && filepath.Ext(path) != "" {
path = filepath.Dir(path)
}
if strings.HasSuffix(path, ".go") || strings.HasSuffix(path, "") {