Open criemen opened 1 week ago
@meteorcloudy
REPOSITORY_DIRECTORY:@@WORKSPACE.bazel
This looks very weird, do you actually have a repo called WORKSPACE.bazel
somehow? Can you provide a minimal reproducible case?
do you actually have a repo called WORKSPACE.bazel somehow?
No, unless one of our transitive dependencies has one (that'd be weird though).
Can you provide a minimal reproducible case?
Not anytime soon, but if you're fine with waiting then I'll get back to you eventually.
After running bazel vendor
, I got stuck with the same error when running bazel test
using Bazel 7.3.1:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'REPOSITORY_DIRECTORY:@@WORKSPACE' (requested by nodes '[/<redacted>/e9607a41d9]/[external/WORKSPACE]')
The crash loop does not get resolved by bazel clean --expunge
, only by removing the vendor
directory.
I can reproduce it by running
touch WORKSPACE
mkdir vendor
ln -s $(bazel info output_base)/external vendor/bazel-external
bazel test ...
Duplicates #22740
Description of the bug:
Presumably some symlink or something in our source root messes up the vendor subcommand - it shouldn't crash with an exception though.
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
MacOS
What is the output of
bazel info release
?development
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.5f5d70b6c4d2fb1a889479569107f1692239e8a7 via bazelisk (it's a commit from the 7.4.0 branch)
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response