Skip to content

Rename crates_vendor_manifests to cvm to shorten windows path lengths - #1944

Merged
scentini merged 1 commit into
bazelbuild:mainfrom
scentini:windows_long_names
Apr 27, 2023
Merged

scentini merged 1 commit into
bazelbuild:mainfrom
scentini:windows_long_names

Conversation

@scentini

@scentini scentini commented Apr 27, 2023 •

Copy link
Copy Markdown
Collaborator

The LINK : fatal error LNK1181: cannot open input file 'windows.0.48.0.lib in https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/2983#0187c0e7-1c1b-40ca-9a81-6f2c261bfe9e from #1938 seems to come from too long a path; I believe the windows.0.48.0.lib file should be under C:\\b\\ng6ta375\\execroot\\__main__\\bazel-out/x64_windows-opt-exec-ST-f007e4e0eadc/bin/external/crates_vendor_manifests__windows_x86_64_msvc-0.48.0/windows_x86_64_msvc_build_script_.exe.runfiles/crates_vendor_manifests__windows_x86_64_msvc-0.48.0/lib, which, together with the file's name surpasses the Windows filepath limit of 260 characters.

I only changed a crates_vendor_manifests repository to cvm, and I needed to run bazel run @//vendor_local_pkgs:crates_vendor, bazel run @//vendor_local_manifests:crates_vendor, bazel run @//vendor_remote_manifests:crates_vendor afterwards. This seems to have triggered some crate version updates, e.g rustix-0.37.14 -> rustix-0.37.15 I'm not sure if that's expected.

@scentini
scentini requested a review from UebelAndre April 27, 2023 14:20
@scentini
scentini marked this pull request as ready for review April 27, 2023 14:20

@UebelAndre UebelAndre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh Windows….

@scentini
scentini merged commit 99aaf08 into bazelbuild:main Apr 27, 2023
@scentini
scentini deleted the windows_long_names branch April 27, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants