More debug for findImports

This commit is contained in:
Alexander Neumann 2019-11-22 12:16:46 +01:00
parent 8387d18d4d
commit fd6211653c
1 changed files with 1 additions and 1 deletions

View File

@ -477,9 +477,9 @@ func updateEnv(env []string, override map[string]string) []string {
func (env *TravisEnvironment) findImports() (map[string][]string, error) {
res := make(map[string][]string)
msg("checking for forbidden imports")
cmd := exec.Command("go", "list", "-f", `{{.ImportPath}} {{join .Imports " "}}`, "./internal/...", "./cmd/...")
cmd.Env = updateEnv(os.Environ(), env.env)
cmd.Stderr = os.Stderr
output, err := cmd.Output()