Closed katre closed 6 years ago
Yeah, my pr broke that when I added env var support. I also added https://github.com/bazelbuild/rules_jsonnet/blob/master/tools/bazel.rc
How can I have a test that uses env variables that are being passed into the sandbox?
@aehlig, do you know how this would work?
@aehlig pointed out that the failing run has the flags --nomaster_bazelrc --blazerc=/dev/null
, which would mean your bazel.rc wasn't being used. Runs since then have those flags removed, and are passing, so I think this was a CI issue.
Sorry for the confusion, I'm closing this now.
See the logs: https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/246#18005cc9-c2f3-4b2c-90a5-cc024ea05ff1
The error message is:
This fails with the Bazel nightly, and the recent 0.13.0 release.
I suspect the problem is that with sandboxing, your rule can't access the environment variables it needs.