mirror of
https://github.com/octoleo/restic.git
synced 2024-10-31 19:02:32 +00:00
More debug for findImports
This commit is contained in:
parent
8387d18d4d
commit
fd6211653c
@ -477,9 +477,9 @@ func updateEnv(env []string, override map[string]string) []string {
|
|||||||
|
|
||||||
func (env *TravisEnvironment) findImports() (map[string][]string, error) {
|
func (env *TravisEnvironment) findImports() (map[string][]string, error) {
|
||||||
res := make(map[string][]string)
|
res := make(map[string][]string)
|
||||||
|
msg("checking for forbidden imports")
|
||||||
|
|
||||||
cmd := exec.Command("go", "list", "-f", `{{.ImportPath}} {{join .Imports " "}}`, "./internal/...", "./cmd/...")
|
cmd := exec.Command("go", "list", "-f", `{{.ImportPath}} {{join .Imports " "}}`, "./internal/...", "./cmd/...")
|
||||||
cmd.Env = updateEnv(os.Environ(), env.env)
|
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|
||||||
output, err := cmd.Output()
|
output, err := cmd.Output()
|
||||||
|
Loading…
Reference in New Issue
Block a user