DockerCLI/cli/command
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
..
builder cmd: set double quotes as code delimiter 2023-01-06 19:15:33 +01:00
checkpoint cli/command/checkpoint: fakeClient: remove name for unused arg (revive) 2023-03-30 17:22:05 +02:00
commands remove exec, push, pull, ps, images, info from "legacy" commands 2022-04-08 16:55:39 +02:00
completion vendor: github.com/docker/docker master (v24.0.0-dev) 2023-03-30 19:56:28 +02:00
config cli/command/config: fakeClient: include context in fake client (revive) 2023-03-30 17:05:32 +02:00
container Merge pull request #4250 from thaJeztah/tininits 2023-05-16 18:13:24 +01:00
context cli/command/context: remove redundant if ...; err != nil check (revive) 2023-03-30 17:05:29 +02:00
formatter remove uses of deprecated VirtualSize field 2023-04-28 14:58:53 +02:00
idresolver cli/command/idresolver: fakeClient: remove name for unused arg (revive) 2023-03-30 17:22:06 +02:00
image remove uses of golang.org/x/sys/execabs 2023-05-26 02:03:45 +02:00
inspect linting: fix incorrectly formatted errors (revive) 2022-03-28 10:37:25 +02:00
manifest manifest: save raw manifest content on download 2023-01-27 13:56:17 +00:00
network cli/command/network: fakeClient: remove name for unused arg (revive) 2023-03-30 17:22:07 +02:00
node cli/command/node: fakeClient: remove name for unused arg (revive) 2023-03-30 17:22:07 +02:00
plugin cli/command: replace EncodeAuthToBase64 for registry.EncodeAuthConfig 2023-04-12 21:17:15 +02:00
registry cli/command: replace EncodeAuthToBase64 for registry.EncodeAuthConfig 2023-04-12 21:17:15 +02:00
secret cli/command/secret: fakeClient: include context in fake client (revive) 2023-03-30 17:22:00 +02:00
service replace uses of client.IsErrNotFound for errdefs.IsNotFound 2023-05-11 23:09:29 +02:00
stack Merge pull request #4279 from thaJeztah/remove_deprecated_stack_stubs 2023-05-16 18:11:41 +01:00
swarm cli/command/swarm: fakeClient: remove name for unused arg (revive) 2023-03-30 17:22:09 +02:00
system cli/command/system: remove aufs from fixtures 2023-05-19 00:55:31 +02:00
task cli/command/task: fakeClient: remove name for unused arg (revive) 2023-03-30 17:22:09 +02:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust cli/command: replace EncodeAuthToBase64 for registry.EncodeAuthConfig 2023-04-12 21:17:15 +02:00
volume volumes: prune: add --all / -a option 2023-04-20 23:31:47 +02:00
cli.go Handle empty DOCKER_BUILDKIT like unset 2023-04-19 14:17:01 +02:00
cli_options.go cli/command: add WithAPIClient 2022-12-05 21:40:39 +01:00
cli_options_test.go linting: os.Setenv() can be replaced by `t.Setenv()` (tenv) 2022-09-03 21:25:37 +02:00
cli_test.go cli/command: initialize client and load content lazily 2022-11-28 16:52:02 +01:00
context.go cli/command: move default context description to context itself 2022-11-22 12:57:54 +01:00
context_test.go cli/command: use more descriptive const in test 2022-11-22 12:57:57 +01:00
defaultcontextstore.go cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
defaultcontextstore_test.go cli/flags: merge CommonOptions into ClientOptions 2022-11-22 12:32:18 +01:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
registry.go cli/command: remove deprecated EncodeAuthToBase64 2023-05-09 22:39:22 +02:00
registry_test.go replace uses of deprecated api/types.AuthConfig 2023-03-30 19:57:16 +02:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go cli/command: use strings.Cut 2022-12-29 15:19:31 +01:00
utils_test.go format go with gofumpt (with -lang=1.19) 2022-09-30 19:14:36 +02:00