Skip to content

Path map environment variable values #26609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Jul 22, 2025

Apart from threading through PathMapper to getEffectiveEnvironment, this required refactoring away the envResolved logic in EnhancedStarlarkAction and ExtraAction. Instead, ActionSpawn now always calls out to getEffectiveEnvironment to resolve the env, while giving subclasses of SpawnAction a chance to override it.

RELNOTES: The values of environment variables are now subject to path mapping (if enabled for the action).

Apart from threading through `PathMapper` to `getEffectiveEnvironment`, this required refactoring away the `envResolved` logic in `EnhancedStarlarkAction` and `ExtraAction`. Instead, `ActionSpawn` now always calls out to `getEffectiveEnvironment` to resolve the env, while giving subclasses of `SpawnAction` a chance to override it.
@fmeum fmeum requested review from a team, lberki, comius, pzembrod and trybka as code owners July 22, 2025 11:42
@fmeum fmeum requested review from mai93 and removed request for a team, lberki, pzembrod, trybka and mai93 July 22, 2025 11:42
@github-actions github-actions bot added team-Performance Issues for Performance teams team-Configurability platforms, toolchains, cquery, select(), config transitions team-Rules-Java Issues for Java rules team-Rules-CPP Issues for C++ rules awaiting-review PR is awaiting review from an assigned reviewer labels Jul 22, 2025
@fmeum
Copy link
Collaborator Author

fmeum commented Jul 22, 2025

@bazel-io fork 8.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions team-Performance Issues for Performance teams team-Rules-CPP Issues for C++ rules team-Rules-Java Issues for Java rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants