Skip to content

cargo publish chokes on symlinks #2748

@elinorbgr

Description

@elinorbgr

On my project wayland-client, I have a structure like this:

- protocols/
- wayland-client/
    |- protocols/ (symlink -> ../protocols)
    |- src/
    |- Cargo.toml

With previous versions of cargo, publishing wayland-client worked as expected, packaging the contents of protocols through the symlink as if it was a simple directory.

Now, since I updated to cargo 0.10.0, cargo publish chokes on the protocols symlink:

 $ cargo publish --verbose
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Packaging wayland-client v0.6.0 (file:///home/levans/dev/wayland-rs/wayland-client)
   Archiving Cargo.toml
   Archiving build.rs
   Archiving examples/list_globals.rs
   Archiving examples/simple_window.rs
   Archiving protocols
error: failed to prepare local package for uploading

Caused by:
  could not archive source file `protocols`

Caused by:
  Is a directory (os error 21)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions