bazelbuild / bazelbuild/bazel-skylib

Add env attr to native_binary and native_test

Open
#409 10 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.