bazelbuild / bazelbuild/rules_rust

feature request: support 'env' that propogates to dependents

Open
#2,486 0 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

we have a helper crate that does codegen.

the code in it acts as a library for build scripts, when run it needs protoc. We can add protoc t the data attribute, and then the actual build script inherits that.

But the path to protoc passed in as an env variable doesn't propogate.

We could capture that with `env!` and then set the variable to that when actually running, but that feels wrong...

Happy to add some mock code if this isn't clear.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.