-
Notifications
You must be signed in to change notification settings - Fork 181
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 attr to native_binary and native_test #409
Comments
This env param does work even without |
@cameron-martin Are you sure that's true? As far as I know the |
Looks like I'm too eager to clean up my issues list. I'll reopen this as you're probably right about this. |
Hi! I would also like this! For now I'm working around this with a patch, using this rather small change: I would have contributed it as a PR, but I'm a bit unsure about:
|
@redsun82 You could use |
ah, nice one @fmeum |
For the moment I've opened this draft PR, I'll update it sometime soon with the |
I've updated the PR, which turned out a bit trickier than I thought. For the moment I decided to replicate part of what |
I've opened another PR based on the previous one but using bazel_features (and modifying the release instructions for |
native_binary and native_test currently have no way to specify the environment that the target runs with. A
RunEnvironmentInfo
provider could be returned from these, based on a passed-inenv
attr.The text was updated successfully, but these errors were encountered: