bazelbuild/bazel
View on GitHub`bazel vendor` does not work as expected when using local registry.
Open
#25,503 opened on Mar 7, 2025
P2help wantedteam-ExternalDepstype: bug
Description
Description of the bug:
The marker file for repos with patches will have different digest if repo is located at different places.
Likely because of https://github.com/bazelbuild/bazel/blob/f805f55e929069a00b83bf2de41fe945f1cb18d2/src/main/java/com/google/devtools/build/lib/packages/RuleFormatter.java#L64
Similar to https://github.com/bazelbuild/bazel/issues/19621
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.
git clone https://github.com/boleynsu-org/monorepo A
git clone https://github.com/boleynsu-org/monorepo B
(cd A; bazel vendor //... --vendor_dir=v; cat $(ls v/*.marker | sort) >m)
(cd B; bazel vendor //... --vendor_dir=v; cat $(ls v/*.marker | sort) >m)
diff A/m B/m
Which operating system are you running Bazel on?
Fedora 41
What is the output of bazel info release?
release 8.1.1
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse HEAD ?
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