cargo test
rustc error on Windows: The filename or extension is too long
#10381
Labels
C-bug
Category: bug
Problem
Hi all!
I originally opened over on rust-lang but realized it probably fits better over here.
We have a project where we noticed that any PRs that introduce a new dependency were causing our
cargo test
invocations in Windows CI builds to fail with:I think we are running into the same issue described by rust-lang/rust#39644 but with
rustc.exe
rather thanlink.exe
forcargo test
's invocation ofrustc
.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 rust-lang/rust#44094 but for the
rustc
invocation fromcargo
?Steps
On Windows:
git clone https://github.com/vectordotdev/vector
make test
Possible Solution(s)
I think we are running into the same issue described by rust-lang/rust#39644 but with
rustc.exe
rather thanlink.exe
forcargo test
's invocation ofrustc
?Notes
No response
Version
The text was updated successfully, but these errors were encountered: