moby/builder
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
..
builder-next Merge pull request #47563 from vvoland/buildkit-runc-override 2024-03-14 20:17:01 +01:00
dockerfile builder/normalizeWorkdir: Always return cleaned path 2024-04-19 12:42:19 +02:00
remotecontext pkg/system: return even richer xattr errors 2024-01-22 15:25:10 -05:00
builder.go api: remove handling of HostConfig on POST /containers/{id}/start (api < v1.24) 2024-02-06 18:44:44 +01:00