Closed
Description
I needed to use a private crate from a second crate, and decided to try using a dependency based on git instead of using a local path.
Cargo.toml:
[dependencies.my_private_library]
git = "https://github.com/MyUserName/my_private_library"
branch = "master"
Problem
When I attempted to build, I got this error:
error: failed to load source for a dependency on `my_private_library`
Caused by:
Unable to update https://github.com/MyUserName/my_private_library#61bcf82d
Caused by:
Could not find `Cargo.toml` in `C:\Users\my_user_name\.cargo\git\checkouts\my_private_library-0f9a102462bf3bba\my_private_library`
I opened up C:\Users\my_user_name\.cargo\git\checkouts\my_private_library-0f9a102462bf3bba
and found that there was a subfolder named 61bcf82
instead of my_private_library
.
Notes
Manually renaming the folder FIXED the issue locally, though a new copy of 61bcf82
appeared with duplicate files in the process.