DockerCLI/cli/config/credentials
Sebastiaan van Stijn 4cf04988ae
remove uses of golang.org/x/sys/execabs
the "golang.org/x/sys/execabs" package was introduced to address a security
issue on Windows, and changing the default behavior of os/exec was considered
a breaking change. go1.19 applied the behavior that was previously implemented
in the execabs package;

from the release notes: https://go.dev/doc/go1.19#os-exec-path

> Command and LookPath no longer allow results from a PATH search to be found
> relative to the current directory. This removes a common source of security
> problems but may also break existing programs that depend on using, say,
> exec.Command("prog") to run a binary named prog (or, on Windows, prog.exe)
> in the current directory. See the os/exec package documentation for information
> about how best to update such programs.
>
> On Windows, Command and LookPath now respect the NoDefaultCurrentDirectoryInExePath
> environment variable, making it possible to disable the default implicit search
> of “.” in PATH lookups on Windows systems.

With those changes, we no longer need to use the execabs package, and we can
switch back to os/exec.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-05-26 02:03:45 +02:00
..
credentials.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
default_store.go remove uses of golang.org/x/sys/execabs 2023-05-26 02:03:45 +02:00
default_store_darwin.go defaultCredentialStore: make this a function 2017-09-20 11:14:27 -06:00
default_store_linux.go config/credentials: don't run 'pass' to detect it 2018-06-29 11:38:39 -07:00
default_store_unsupported.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
default_store_windows.go defaultCredentialStore: make this a function 2017-09-20 11:14:27 -06:00
file_store.go cli/config: use strings.Cut 2022-12-29 15:19:31 +01:00
file_store_test.go Use designated test domains (RFC2606) in tests 2021-04-30 10:03:45 +02:00
native_store.go linting: ignore some "G101: Potential hardcoded credentials" warnings 2022-03-28 10:37:22 +02:00
native_store_test.go cli/config: remove deprecated io/ioutil and use t.TempDir() 2022-02-25 15:42:15 +01:00