-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.
Description
How to reproduce:
cargo new hello
cd hello
vi Cargo.toml
Add the following line to the package
table:
include = ["hello.txt"]
And then create that file:
touch hello.txt
Finally, try to execute
cargo package
This fails for me with the following error message:
Packaging hello v0.1.0 (file:///home/thomas/Workspace/hello)
Verifying hello v0.1.0 (file:///home/thomas/Workspace/hello)
error: failed to verify package tarball
Caused by:
failed to read `/home/thomas/Workspace/hello/target/package/hello-0.1.0/Cargo.toml`
Caused by:
No such file or directory (os error 2)
Executing ls target/package/hello-0.1.0/
gives me hello.txt
, so it does get included.
Tested versions (same result):
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.