Skip to content

Honor skip_expanding_rustc_env for metadata actions - #4263

Closed
dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:fix/metadata-rustc-env
Closed

dzbarsky wants to merge 1 commit into
bazelbuild:mainfrom
dzbarsky:fix/metadata-rustc-env

Conversation

@dzbarsky

@dzbarsky dzbarsky commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Submitted to the intended repository in hermeticbuild#63. This PR is closed.

Pass skip_expanding_rustc_env to metadata argument construction as well as the main compilation. With pipelining enabled, custom rules that set this option still expanded literal $(...) values and could fail during analysis.

Added an analysis test that checks the unchanged environment in both Rustc actions. The test fails before the fix; all 14 tests in //test/unit/pipelined_compilation:all pass on Bazel 9 afterward.

Assisted by OpenAI Codex.

Pass skip_expanding_rustc_env through both construct_arguments calls so pipelined compilation does not expand literal environment values for custom rules.

Add an analysis regression for literal make-variable syntax. The regression fails before the fix; all eight pipelined_compilation tests pass on Bazel 9 afterward.

Assisted-by: OpenAI Codex
@dzbarsky dzbarsky closed this Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant