cargo package / publish don't handle symlink correctly on Windows #5664
Open
Description
If you package a crate with symlink, the file would not be followed but be packed as a file with relative path as content. For example, if you checkout serde-rs/serde, and run cargo package
in serde
directory, the license files in the package directory would only have content like ../LICENSE-APACHE
.
It's probably actually a problem of Git for Windows which may not checkout symlink correctly. But maybe Cargo can try harder to query the VCS for whether it's a symlink or not (e.g. use git ls-files -s
).
Related issues: alexcrichton/cargo-vendor#77, #3896, #2748.