DockerCLI/cli-plugins
Sebastiaan van Stijn 1c6a8ecf2e
cli-plugins: PluginRunCommand: use cmd.Environ instead of os.Environ
Commit 5011759056 implemented a fix that
caused the current environment to be discarded, using `os.Environ()`.
On Windows, `os.Environ()` may produce an incorrect value for `PWD`,
for which a new function was added in go1.19;

- https://tip.golang.org/doc/go1.19#osexecpkgosexec
- https://go-review.googlesource.com/c/go/+/401340

Replace the use of `os.Environ()` with `cmd.Environ()` to address that.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 5ccb48459b)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-04-30 13:03:15 +02:00
..
examples/helloworld cli-plugins: helloworld: rename var that collided with import 2024-01-11 22:25:15 +01:00
hooks plugins/templates: break on newlines when printing hooks 2024-04-15 12:59:53 +01:00
manager cli-plugins: PluginRunCommand: use cmd.Environ instead of os.Environ 2024-04-30 13:03:15 +02:00
plugin command: include default otel error handler for the cli 2024-04-03 12:01:28 -05:00
socket plugin: drop explicit unlink 2024-03-22 10:12:40 -06:00