Skip to content
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

Make action_env work for rustc actions #1022

Merged
merged 2 commits into from
Nov 19, 2021

Conversation

djmarcin
Copy link
Contributor

@djmarcin djmarcin commented Nov 17, 2021

Currently, action_env is not passed through to rustc actions, which means that variables like DEVELOPER_DIR needed in some cases on macOS cannot be passed through. This PR passes action_env through to rustc actions.

Similar to existing code at

env = dict(ctx.configuration.default_shell_env)

Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me but would like another person to look too 😃

@illicitonion illicitonion merged commit 53b1de6 into bazelbuild:main Nov 19, 2021
ddeville pushed a commit to ddeville/rules_rust that referenced this pull request Nov 22, 2021
Currently, action_env is not passed through to rustc actions, which means that variables like `DEVELOPER_DIR` needed in some cases on macOS cannot be passed through. This PR passes action_env through to rustc actions.

Similar to existing code at https://github.com/bazelbuild/rules_rust/blob/e2f0fccda912daac686b533ad77c5bc5d2f2ddb7/cargo/cargo_build_script.bzl#L68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants