-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustc
error on Windows: The filename or extension is too long
#93920
Comments
bazelbuild/rules_rust#1076 seems related. |
Yes, for arguments longer than the 32,767 limit, you would need to load command-line flags from a path. |
Is that something we can do from outside? We are just executing |
I think so. It seems more like a bug with Cargo because I'm not sure there's much rustc can do here. |
Yeah, I think so too. I opened rust-lang/cargo#10381 so I'll close this one out. Thanks for the pointer! |
Hi all!
I think we are running into the same issue described by #39644 but with
rustc.exe
rather thanlink.exe
.We have a project where we noticed that any PRs that introduce a new dependency were causing our Windows CI builds to fail with:
In the example failure below, it does seem like the
rustc
command is 33,184 characters, which would be over the 32,767 character limit mentioned in https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation.Example failure:
https://github.com/vectordotdev/vector/runs/5157867395?check_suite_focus=true
Does that sound right to people? Do we need the same fix from #44094 but for the
rustc
invocation?Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: