Merge pull request #141 from tony24681379/args

fix tool args bug
This commit is contained in:
Alessio Pracchia 2017-12-15 09:26:02 +01:00 committed by GitHub
commit e9f0e54766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,9 +98,9 @@ func (t *Tool) Exec(path string, stop <-chan bool) (response Response) {
} else if !strings.HasSuffix(path, ".go") {
return
}
args := []string{}
args := t.Args
if strings.HasSuffix(path, ".go") {
args = append(t.Args, path)
args = append(args, path)
path = filepath.Dir(path)
}
if s := ext(path); s == "" || s == "go" {