Open peakschris opened 3 weeks ago
There is really little we can do in Bazel. The only way around is to choose a shorter name for the repository, files or the vendor path.
@meteorcloudy how about:
instead of this:
vendor\_main~main_extension~nuget.runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl.v4.3.3\_main~main_extension~nuget.runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl.v4.3.3.zip
the zip is named:
vendor\_main~main_extension~nuget.runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl.v4.3.3\vendor.zip
@peakschris Can you elaborate more? The file path is determined by the repo itself. I don't think vendor mode can arbitrarily change the path?
Description of the bug:
After vendoring a bazel install, some zip file paths are above the windows path length limit, and refuse to delete. I wonder if we could choose shorter names for the zip files to avoid this. There only appears to be one zip file in each directory.
The zipfile clearly exists:
But windows refuses to delete it:
I know, this shouldn't be needed, but it's windows and seems like it may never be fixed (rollseyes)
There are ways to delete these directories, but they are ridiculously hacky.
Which category does this issue belong to?
External Dependency
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
vendor a directory with some long/nested module names on windows try to delete it with rmdir /s /q
Which operating system are you running Bazel on?
windows
What is the output of
bazel info release
?7.2.0rc2
If
bazel info release
returnsdevelopment 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
?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