Replies: 1 comment
-
https://bazel.build/reference/test-encyclopedia documents the various environment variables that bazel sets for every test; these are set outside the py rule process. For the py rules, there's no environment variables that are promised to be set or not set. There's a few that happen to get set as part of bootstrapping, but we're trying to eliminate those. HTH |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version: 0.23.1 (9c6e26911a79fbf510a8f06d8eedb40f412023cf7fa6d1461def27116bff022c)
I noticed today that inside
py_test
the running test has access toRUNFILES_DIR
as an environment variable, but apy_binary
does not.I could not find a reference as to what environment variables are given to each type of rule.
Side note: I also tried upgrading to 1.1.0 (bazel version 6.4.0), but the steps at https://rules-python.readthedocs.io/en/latest/getting-started.html#using-a-workspace-file failed with
I suspect there is a typo in the getting started instructions, but removing
_host
also doesn't seem to work. This is my minimal reproducing workspace: https://gist.github.com/j2kun/4047ee409e3f17599eb4b8389e94ead1Beta Was this translation helpful? Give feedback.
All reactions