-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
cargo package --list
issue with relative path
#1431
Comments
this seems partially by design (rust-lang/cargo#7938 (comment)). i think we should ask the cargo developers for an option specifically for tool such as maturin that prints all paths that cargo would include (and in the meantime use custom workarounds) |
Right, https://doc.rust-lang.org/cargo/commands/cargo-package.html#description |
Relative We're effectively using |
While investigating conda-forge/ruff-feedstock#84 (comment), I found that
cargo package --list
behaves weird when relative path is used in metadata, for exampleruff_cli
specifiesreadme = "../README.md"
, butcargo package --list
outputs$ cargo package --list --manifest-path ruff_cli/Cargo.toml 2>/dev/null .cargo_vcs_info.json Cargo.lock Cargo.toml Cargo.toml.orig README.md src/args.rs src/cache.rs src/commands.rs src/diagnostics.rs src/iterators.rs src/lib.rs src/main.rs src/printer.rs src/resolve.rs src/updates.rs tests/black_compatibility_test.rs tests/integration_test.rs
The result is that the
README.md
is missing from top level directory in sdist.The text was updated successfully, but these errors were encountered: