Closed Brad-Hesson closed 1 year ago
Windows has a problem with long pathnames. Shorten your project directory name and move it as closer to the drive root as possible.
@Brad-Hesson I would like to confirm @ivmarkov statement. This is a limitation for Windows. Please, consider moving the project to shorter path, idealy somewhere neer root of filesystem. Other option is to use mapping: https://github.com/esp-rs/rust/discussions/111#discussioncomment-2363015
Recommendation for Windows users to avoid long path problem
use subst r:\ c:\my-rust-project
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst
The command maps directory to new drive.
The command avoids all problems with short paths problem which is pretty complex and deeply rooted in all tools like git, CMake, CCache, CMD or OS itself
note: Solution with UNC Paths does not work, because CMake is generating CMD based scripts :-/
@SergioGasquez Would it be possible to add the check to cargo generate
?
Trying to build my project after a re-install of windows but I am getting this error. I then tried to build this template to test if it was a problem specifit to my project, but I got the same error. I have included more of the build output here: