From e5e8ff5030ab3dc0894fc71780d2058ed0ecc247 Mon Sep 17 00:00:00 2001 From: asoseil Date: Mon, 16 Oct 2017 14:01:41 +0200 Subject: [PATCH] tools fixed --- exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.go b/exec.go index b98239b..1794aba 100644 --- a/exec.go +++ b/exec.go @@ -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, "") {