Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug#153109
Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug#153109homersimpsons wants to merge 1 commit intorust-lang:mainfrom
Conversation
|
The multiline way in which you set environment variables isn't equivalent to before. Try with this Dockerfile: prints an output that is trimmed (no space at begin or end) While the following dockerfile (taken from your pr): prints an output that has spaces at the beginning: |
|
Thanks for your feedback @marcoieni. In fact there is a leading space change. I do not recall if I spotted this, but I think this is not an issue. The only alternative I can think of is to inline the first line making this potentially harder to read: -ENV SCRIPT=" \
- python3 ../x.py --stage 2 build && \
+ENV SCRIPT="python3 ../x.py --stage 2 build && \
python3 ../x.py --stage 2 test tests/run-make tests/run-make-cargo"In fact the The documentation https://docs.docker.com/reference/build-checks/legacy-key-value-format/ does not mention this difference, so I do not know if that is expected on docker side. I opened docker/docs#24227. Do you prefer:
|
|
I prefer option 2, so that the env var doesn't have leading whitespaces. Your diff looks good! 👍 Probably the scripts will work anyway, but bash is weird so I prefer to change the Dockerfiles without affecting their behavior. |
8142d08 to
934e9a1
Compare
934e9a1 to
6df2169
Compare
Okay, I updated both
I can alternatively update only the |
|
@bors try jobs=aarch64-gnu-debug |
This comment has been minimized.
This comment has been minimized.
…aarch64-gnu-debug, r=<try> Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug try-job: aarch64-gnu-debug
|
@bors r+ rollup=always |
Part of #152305
r? @marcoieni