-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Windows, Git dependency with symlink source file fails to build #7466
Comments
That's really strange! It looks like the issue is that libgit2 is creating symlinks with forward slashes, and those cannot be read. I have opened an upstream issue at libgit2/libgit2#5252. |
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Mar 13, 2020
Brings in rust-lang/git2-rs#527 Closes rust-lang#7466 Closes rust-lang#7988
bors
added a commit
that referenced
this issue
Mar 13, 2020
Bump libgit2 dependencies Brings in rust-lang/git2-rs#527 Closes #7466 Closes #7988
ehuss
pushed a commit
to ehuss/cargo
that referenced
this issue
Mar 16, 2020
Bump libgit2 dependencies Brings in rust-lang/git2-rs#527 Closes rust-lang#7466 Closes rust-lang#7988
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Given a library crate contains a symlink as a source file, i.e.
something.rs -> ../other/something.rs
, when another crate depends on the library via a{ git = ".." }
dependency, then on Windows, the cloned dependency fails to build.An example error message:
Steps
(On Windows!), create a crate with the following dependency:
cargo build
Possible Solution(s)
Not sure, but whatever
cargo publish
does, the consuming crate is able to build -- on the same commit,derive_builder = "0.8.0"
builds successfully.Notes
Output of
cargo version
:cargo 1.37.0-nightly (4c1fa54d1 2019-06-24)
OS: Windows 10 x64
Git:
git version 2.23.0.windows.1
git config core.symlinks
:true
cc: colin-kiegel/rust-derive-builder#149
The text was updated successfully, but these errors were encountered: