You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to execute cargo publish and the process fails with a
error: failed to verify package tarball
Caused by:
failed to remove file `..........\build_script_build-1355d04cfd9a6cb5.build_script_build.b1cedc92-cgu.0.rcgu.o`
Caused by:
The system cannot find the path specified. (os error 3)
The path is 261 characters long.
The actual problem is the Maximum Path Length Limitation which can easily be avoided by using the magic "\\?\" prefix.
Steps
create or copy any project to a location where it itself is closely below the MAX_PATH limit and try to publish
Possible Solution(s)
Use the magic "\\?\" prefix for all paths on windows
Sorry you're running into trouble with the long paths. Unfortunately this isn't a particularly easy thing to fix universally. I'm going to close as a duplicate of #9770 and the issues linked therein.
Problem
I'm trying to execute cargo publish and the process fails with a
The path is 261 characters long.
The actual problem is the Maximum Path Length Limitation which can easily be avoided by using the magic
"\\?\"
prefix.Steps
Possible Solution(s)
Use the magic
"\\?\"
prefix for all paths on windowsNotes
Long Paths can be globally enabled in Windows 10, Version 1607, and Later but this is a somewhat intrusive method which can break other applications.
Version
The text was updated successfully, but these errors were encountered: