-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: backport Go 1.19 os/exec behavior changes via execabs
This is probably overly conservative since this behavior doesn't affect Mutagen to the extent that it affects the Go toolchain commands, but it's an easy fix to make and shouldn't have any adverse effect on Mutagen users. For more background information, see https://go.dev/blog/path-security and https://go.dev/doc/go1.19. Signed-off-by: Jacob Howard <jacob@mutagen.io>
- Loading branch information
1 parent
e33eabd
commit cacfc18
Showing
6 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package docker | ||
|
||
import ( | ||
"os/exec" | ||
"golang.org/x/sys/execabs" | ||
) | ||
|
||
// commandPathForPlatform searches for the docker command in the user's path. | ||
func commandPathForPlatform() (string, error) { | ||
return exec.LookPath("docker") | ||
return execabs.LookPath("docker") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters