moby/builder/dockerfile
Paweł Gronowski a4d5b6b4d0
builder/normalizeWorkdir: Always return cleaned path
The `normalizeWorkdir` function has two branches, one that returns a
result of `filepath.Join` which always returns a cleaned path, and
another one where the input string is returned unmodified.

To make these two outputs consistent, also clean the path in the second
branch.

This also makes the cleaning of the container workdir explicit in the
`normalizeWorkdir` function instead of relying on the
`SetupWorkingDirectory` to mutate it.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-04-19 12:42:19 +02:00
..
buildargs.go Sort unconsumed build arguments before usage 2023-07-09 03:23:06 -04:00
buildargs_test.go builder/dockerfile: add "ALL_PROXY" to list of default build args 2021-04-24 18:25:16 +02:00
builder.go builder/dockerfile: errmsg: quote build target 2023-11-02 09:38:14 +01:00
builder_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
builder_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
containerbackend.go api: remove handling of HostConfig on POST /containers/{id}/start (api < v1.24) 2024-02-06 18:44:44 +01:00
copy.go builder/dockerfile: ADD with best-effort xattrs 2024-02-12 13:31:44 -05:00
copy_test.go builder/dockerfile: use string-literals for easier grep'ing 2023-07-05 12:25:59 +02:00
copy_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
copy_windows.go builder/dockerfile: use string-literals for easier grep'ing 2023-07-05 12:25:59 +02:00
dispatchers.go builder/windows: Don't set ArgsEscaped for RUN cache probe 2024-01-25 16:04:07 +01:00
dispatchers_test.go api/types: move ContainerCreateConfig, ContainerRmConfig to api/types/backend 2023-12-05 16:41:36 +01:00
dispatchers_unix.go builder/normalizeWorkdir: Always return cleaned path 2024-04-19 12:42:19 +02:00
dispatchers_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
dispatchers_windows.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
dispatchers_windows_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
evaluator.go image: implement CheckOS, deprecate pkg/system IsOSSupported 2023-09-07 22:14:44 +02:00
evaluator_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
imagecontext.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
imagecontext_test.go builder: Don't store context in struct 2022-11-03 12:22:46 +01:00
imageprobe.go image/cache: Check image platform 2024-01-25 16:04:05 +01:00
internals.go api: normalize the default NetworkMode 2024-03-28 12:34:23 +01:00
internals_linux.go migrate to github.com/moby/sys/user 2023-10-24 15:45:02 +02:00
internals_linux_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
internals_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
internals_windows.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00
internals_windows_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
metrics.go goimports: fix imports 2019-09-18 12:56:54 +02:00
mockbackend_test.go api: remove handling of HostConfig on POST /containers/{id}/start (api < v1.24) 2024-02-06 18:44:44 +01:00
utils_test.go builder/dockerfile: format code with gofumpt 2023-06-29 00:25:21 +02:00