/ go Public
cmd/vet, cmd/go: vet crashes for long paths in Windows, affecting go test #46299
Issues related to static analysis (vet, x/tools/go/analysis)
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
Yes, confirmed with go1.16.4 as well.
What operating system and processor architecture are you using (
What did you do?
Have a test file with a long path import something with a very long path.
For example: Have a file at:
and in that file import something like:
go test ./...
What did you expect to see?
Tests passing (or failing)
What did you see instead?
"C:\Users\Andrew\go\go1.16.4\pkg\tool\windows_amd64\vet.exe: fork/exec C:\Users\Andrew\go\go1.16.4\pkg\tool\windows_amd64\vet.exe: The directory name is invalid."
The text was updated successfully, but these errors were encountered: