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

Add env attribute to rust_binary #1692

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Conversation

UebelAndre
Copy link
Collaborator

This change allows users to set an env attribute on rust_binary targets to then have environment variables defined for bazel run invocations via the use of RunEnvironmentInfo.

@UebelAndre
Copy link
Collaborator Author

RunEnvironmentInfo is currently only in Bazel 5.3 and I'm not sure how to conditionally add this provider 😞

Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Ship it!

@UebelAndre UebelAndre merged commit 617db9f into bazelbuild:main Dec 13, 2023
3 checks passed
@UebelAndre UebelAndre deleted the environ branch December 13, 2023 13:32
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.

None yet

2 participants