bazel-lib
bazel-lib copied to clipboard
[Bug]: Yq target does not work with external builds
What happened?
Cryptic message about non-existing file paths
Version
Development (host) and target OS/architectures: linux/debian
Output of bazel --version:
bazel 6.3.2
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:
1.34.1
Language(s) and/or frameworks involved:
How to reproduce
Add a yq target, try to build from an external workspace
Any other information?
I proposed a fix in #547 - seems that may not work in all situations, but at least fixes this problem
I can't reproduce, I'm trying this in an external workspace in this repo:
cd e2e/smoke
bazel build @aspect_bazel_lib//lib/tests/yq:all
and it succeeds.
fwiw the target i was hitting this with initally was the envoy docs - which i then debugged and added proposed fix - so pretty certain diagnosis/etc. Are you sure its seeing the target/s as external testing in this way ?
Sorry, I don't mean to say there isn't a bug, I just need some help to reproduce it so I can add a test case for it and verify a fix, if it's not identical to your PR (accounting for --nolegacy_external_runfiles case)
if i get some time tomorrow ill try and setup a minimal reproducer