Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.2.0] Avoid Windows short paths in Bzlmod #22326

Merged
merged 3 commits into from May 10, 2024
Merged

Conversation

Wyverald
Copy link
Member

When a PathFragment is created on Windows and one of its segments looks like a Windows short path, additional file I/O is performed to resolve it to its long form. Certain Bzlmod-managed repository names could look like such paths, which potentially slows down analysis. Instead, prepend a v to the version of multi-version modules to avoid this.

Requires bumping the lockfile version as canonical label literals may be embedded in lockfiles.

Closes #22219.

PiperOrigin-RevId: 630468932
Change-Id: I54d58ac23e779cda50301301f16109db27d11306

When a `PathFragment` is created on Windows and one of its segments looks like a Windows short path, additional file I/O is performed to resolve it to its long form. Certain Bzlmod-managed repository names could look like such paths, which potentially slows down analysis. Instead, prepend a `v` to the version of multi-version modules to avoid this.

Requires bumping the lockfile version as canonical label literals may be embedded in lockfiles.

Closes #22219.

PiperOrigin-RevId: 630468932
Change-Id: I54d58ac23e779cda50301301f16109db27d11306
@Wyverald Wyverald requested a review from a team as a code owner May 10, 2024 21:13
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Configurability Issues for Configurability team team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. labels May 10, 2024
@Wyverald Wyverald enabled auto-merge May 10, 2024 23:08
@Wyverald Wyverald added this pull request to the merge queue May 10, 2024
Merged via the queue into release-7.2.0 with commit a710821 May 10, 2024
34 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label May 10, 2024
@Wyverald Wyverald deleted the wyv-720-59718ef branch May 11, 2024 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability Issues for Configurability team team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants