Commit 15d8932
fix(compile): silence shellcheck SC2046 on $(AW_AZ_MOUNTS) macro
The new `$(AW_AZ_MOUNTS)` line in the AWF invocation chain is an
ADO macro substituted before bash sees it, not a bash command
substitution. shellcheck cannot distinguish the two and flagged
every compiled fixture with SC2046 ("Quote this to prevent word
splitting"), turning Build & Test red.
Word splitting of the expanded value into separate `--mount` tokens
is intentional and required (the pipeline variable expands to
`--mount /opt/az:/opt/az:ro --mount /usr/bin/az:/usr/bin/az:ro` or
to the empty string). Quoting would produce a single malformed
token. Disable SC2046 with an inline directive on the `sudo -E`
line in all four base templates (base, 1es-base, job-base,
stage-base) so the directive applies to the multi-line awf
invocation as a unit.
Regenerated tests/safe-outputs/azure-cli.lock.yml; verified
bash_lint_tests passes locally with shellcheck 0.11.0.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f50a1a9 commit 15d8932
5 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments