bazelbuild / bazelbuild/bazel-skylib
Add env attr to native_binary and native_test
Open
- Dominant language
- Starlark
- Stars
- 444
- Forks
- 202
- PR merge metrics
- No merged PRs in 30d
Description
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-in `env` attr.
Contributor guide
Research direction
Start by locating the definitions of native_binary and native_test in bazel-skylib, then read the Bazel documentation for RunEnvironmentInfo and existing environment-related providers. Determine how a passed-in env attribute should produce the provider for both rules; done means both targets expose the intended runtime environment and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100