-
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
cargo package --list
includes Cargo.toml.orig since #7905, which isn't an existing file
#7938
Comments
cargo package --list
includes Cargo.toml.orig since #7905, which isn't an existingcargo package --list
includes Cargo.toml.orig since #7905, which isn't an existing file
The documentation for |
Cargo has been including generated files for some time ( |
So if |
@konstin the .crate file is not created out of thin air but from a directory on the hard disk directly next to the .crate file. So no need for extracting anything. |
Sorry, but I can't find that folder next to the .crate file:
|
You need to remove the |
I think for now it will be best to just check if the file exists, and skip it if it does not. Considering this has been the behavior for long time, I'm going to close. I recognize that it is frustrating when things break, but hopefully this isn't too difficult to work around. |
maturin uses
cargo package --list
to create source distributions for python packages with rust backend that can e.g. be uploaded to pypi. #7905 includesCargo.toml.orig
in the outputcargo package --list
, even though that file doesn't exist on the local file system, thereby breaking maturin (PyO3/maturin#271).Possible Solution(s)
Don't include
cargo package --list
in the output ofcargo package --list
. (At least not by default, this could e.g. be hidden behind a flag)Notes
Output of
cargo version
: cargo 1.43.0-nightly (e57bd02 2020-02-21)CC @ehuss
The text was updated successfully, but these errors were encountered: