Skip to content

Need some way to substitute envvars into env maps #24

@peakschris

Description

@peakschris

Firstly, after some years with bazel I have just come across this repo from a stackoverflow comment. Really cool stuff, it was just what we were missing. Thanks!

It would be really helpful if there was a way to substitute existing envvars (passed via bazel --test_env could be substituted into the itest env maps. This is now the only reason that we need to run batch scripts before running bazel test. For example:

env = {
"PATH": "$(PATH);/extra"
"TEST_DATA" = "$(ROOT)/subdir"
}

It would be further cool if there was a way to provide a canned substitution that pointed to the workspace root.

Thanks!

Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions