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
and env_inherit
to native_binary
and native_test
(using @bazel_features
)
#484
Open
redsun82
wants to merge
16
commits into
bazelbuild:main
Choose a base branch
from
redsun82:env-native-binary-using-features
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add env
and env_inherit
to native_binary
and native_test
(using @bazel_features
)
#484
redsun82
wants to merge
16
commits into
bazelbuild:main
from
redsun82:env-native-binary-using-features
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redsun82
requested review from
brandjon,
tetromino,
comius and
c-mita
as code owners
January 11, 2024 09:05
redsun82
changed the title
Add
Add Jan 11, 2024
env
and env_inherit
to native_binary
and native_test
env
and env_inherit
to native_binary
and native_test
(using @bazel_features
)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This relies on the
RunEnvironmentInfo
that was introduced in bazel 5.3.0. To keep the library compatible with previous versions,bazel_features
is used.To make it possible to run CI and update the docs without all the dependencies from
@bazel_features
(some of which would be private and not visible to the doc generation rule), abazel_features_stub
directory is introduced which remains unused when using a released version of the library (it gets removed byMODULE.bazel-remove-override.patch
).Also, this requires a user to do an additional
WORKSPACE
setup step if they need to usenative_binary.bzl
and they are not using bzlmod.Closes #409