Open matthewjh opened 10 months ago
This came up in the context of a question on Bazel Slack: https://bazelbuild.slack.com/archives/CEZUUKQ6P/p1715513010992479?thread_ts=1715434089.351019&cid=CEZUUKQ6P.
"sporadically" is strange and interesting. Did you have --nobuild_runfiles_links
set when you saw this @matthewjh?
What happened?
Hi,
I have a case of (3) in:
that sporadically fails. sh_binary X has a dep on js_binary Y.
RUNFILES
should resolve toX.sh.runfiles
, and most of the time it does, but sporadically it resolves toY.runfiles
, which manifests as a downstream failure to resolvenode
in the following block of the sh wrapper, becauseY.runfiles
doesn't exist:Y.runfiles
is printed in the failing case;X.runfiles
in the working cases.Note the binary is being invoked via
bazel run
.Version
Development (host) and target OS/architectures:
Output of
bazel --version
: 6.3.1 Version of the Aspect rules, or other relevant rules from yourWORKSPACE
orMODULE.bazel
file:Language(s) and/or frameworks involved:
How to reproduce
No response
Any other information?
No response