Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug#153109
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 |
…alueFormat-aarch64-gnu-debug, r=marcoieni Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug Part of rust-lang#152305 r? @marcoieni
…alueFormat-aarch64-gnu-debug, r=marcoieni Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug Part of rust-lang#152305 r? @marcoieni
…uwer Rollup of 12 pull requests Successful merges: - #153211 (`rust-analyzer` subtree update) - #149027 (Improve cross-crate trait impl param mismatch suggestions ) - #152730 (add field representing types) - #153136 (Correctly handle `#[doc(alias = "...")]` attribute on inlined reexports) - #152165 (Normalize capture place `ty`s to prevent ICE) - #152615 (refactor 'valid for read/write' definition: exclude null) - #153109 (Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug) - #153172 (Fix comment about placeholders) - #153187 (Fix ICE when macro-expanded extern crate shadows std) - #153190 (Don't allow subdiagnostic to use variables from their parent) - #153200 (Remove redundant clone) - #153216 (mark two polonius tests as known-bug)
Rollup merge of #153109 - homersimpsons:chore/fix-LegacyKeyValueFormat-aarch64-gnu-debug, r=marcoieni Fix LegacyKeyValueFormat report from docker build: aarch64-gnu-debug Part of #152305 r? @marcoieni
Part of #152305
r? @marcoieni