Merge pull request #1626 from gtardif/add_debug_path

Display PATH when not finding com.docker.cli, to help debugging
This commit is contained in:
Nicolas De loof 2021-05-03 17:57:44 +02:00 committed by GitHub
commit de8834d434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ func RunDocker(childExit chan bool, args ...string) error {
execBinary, err := resolvepath.LookPath(ComDockerCli) execBinary, err := resolvepath.LookPath(ComDockerCli)
if err != nil { if err != nil {
fmt.Fprintln(os.Stderr, err) fmt.Fprintln(os.Stderr, err)
fmt.Fprintln(os.Stderr, "Current PATH : "+os.Getenv("PATH"))
os.Exit(1) os.Exit(1)
} }
cmd := exec.Command(execBinary, args...) cmd := exec.Command(execBinary, args...)