Skip to content
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 fails with empty project #932

Closed
msiemens opened this issue Nov 20, 2014 · 2 comments
Closed

cargo package fails with empty project #932

msiemens opened this issue Nov 20, 2014 · 2 comments

Comments

@msiemens
Copy link

I tried to register a crate name on crates.io by uploading an empty package. This fails with this error message:

$ cargo new git-up
$ cd git-up
$ cargo publish -v
    Updating registry `https://github.com/rust-lang/crates.io-index`
Warning: manifest has no description or license. See http://doc.crates.io/manifest.html#package-metadata for more info.
   Packaging git-up v0.0.1 (file:///home/markus/Coding/git-up)
   Verifying git-up v0.0.1 (file:///home/markus/Coding/git-up)
failed to verify package tarball

Caused by:
  couldn't create file (no such file or directory (No such file or directory); path=/home/markus/Coding/git-up/target/package/git-up-0.0.1/Cargo.lock; mode=truncate; access=write)

Trying to just create a package fails with the same error:

$ cargo package -v
Warning: manifest has no description or license. See http://doc.crates.io/manifest.html#package-metadata for more info.
   Packaging git-up v0.0.1 (file:///home/markus/Coding/git-up)
   Verifying git-up v0.0.1 (file:///home/markus/Coding/git-up)
failed to verify package tarball

Caused by:
  couldn't create file (no such file or directory (No such file or directory); path=/home/markus/Coding/git-up/target/package/git-up-0.0.1/Cargo.lock; mode=truncate; access=write

OS: Fedora 20 (same on Windows 7)
Cargo version: cargo 0.0.1-pre-nightly (b3ce593 2014-11-19 07:12:26 +0000)

@msiemens msiemens changed the title Can't package/publish crate: couldn't create file (no such file or directory ...) cargo package fails with empty project Nov 20, 2014
@alexcrichton
Copy link
Member

Dupe of #797 I think, thanks for the report!

@alexcrichton
Copy link
Member

(the fix is to git add . something)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants