-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Open
Labels
status/triageNeeds triageNeeds triage
Description
Is this a docs issue?
- My issue is about the documentation content or website
Type of issue
Other
Description
In https://docs.docker.com/reference/build-checks/legacy-key-value-format/ we see the following example:
But they are not strictly equal (as observed in rust-lang/rust#153109 (comment)):
- The "Bad" example gives
DEPS="curl git make" - The "Good" example gives
DEPS=" curl git make"(leading whitespaces)
FROM alpine:3.20
ENV DEPS \
curl \
git \
make
CMD ["printenv", "DEPS"]$ docker build -t tmp . && docker run --rm tmp
[...]
curl git makeLocation
https://docs.docker.com/reference/build-checks/legacy-key-value-format/
Suggestion
I believe this behaviour change should be documented.
Or maybe this is a Docker bug where the \ should always strip the leading whitespace of the following line? Which would gives curl git make in both cases?
This example was introduced in moby/buildkit#5126.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status/triageNeeds triageNeeds triage