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

Let Starlark executable rules specify their environment #15750

Closed
wants to merge 2 commits into from
Closed

Let Starlark executable rules specify their environment #15750

wants to merge 2 commits into from

Commits on Jun 27, 2022

  1. Let Starlark executable rules specify their environment

    The new RunEnvironmentInfo provider allows any executable or test
    Starlark rule to specify the environment for when it is executed, either
    as part of a test action or via the run command.
    
    Refactors testing.TestEnvironment to construct a RunEnvironmentInfo and
    adds a warning (but not an error) if the provider constructed in this
    way is returned from a non-executable non-test rule. If a
    RunEnvironmentInfo is constructed directly via the Starlark constructor,
    this warning becomes an error.
    
    Fixes #7364
    Fixes #15224
    Fixes #15225
    
    Closes #15232.
    
    PiperOrigin-RevId: 448185352
    fmeum authored and ckolli5 committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    c6b5f40 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2022

  1. Configuration menu
    Copy the full SHA
    94cac18 View commit details
    Browse the repository at this point in the history