FR: Option for collapsing runfile tree paths on Windows #13525
Labels
area-Windows
Windows-specific issues and feature requests
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-OSS
Issues for the Bazel OSS team: installation, release processBazel packaging, website
type: feature request
Description of the problem / feature request:
Feature request: Create a flag that (at least on Windows) collapses part of the runfile tree in a similar way as #4149 was done for a similar issue. The commit message gives a pretty good explanation: bb9ae6a
Feature requests: what underlying problem are you trying to solve with this feature?
From what I can tell, Windows symlinks don't work if the path of the origin is too long. At least not symlinks to executables. Note that this is not related to the testrunner or any other Bazel wrapper, this is an issue with the symlink itself. It's not even possible to manually run executables through symlinks where the origin is too long.
This creates issues with symlink'd runfile trees when running tests on Windows. The issue here is with Windows and not Bazel, so I mean this to be a feature request allowing a workaround.
Some more background: We have a repository that is fairly "deep", so Bazel runfiles paths get very long. As stated above, such symlinks don't seem to work on Windows (verified on 3 machines). From what I can tell this is a Windows bug that I currently cannot work around other than:
Have you found anything relevant by searching the web?
Only the issue above (#4149) which has a very similar motivation.
This may sound similar to an issue I posted over two years ago (#7479) but it's actually different since there doesn't seem to be a workaround.
The text was updated successfully, but these errors were encountered: