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 publish warns about tokens after doing a build #6877

Closed
richardwhiuk opened this issue Apr 25, 2019 · 1 comment
Closed

cargo publish warns about tokens after doing a build #6877

richardwhiuk opened this issue Apr 25, 2019 · 1 comment
Labels
C-bug Category: bug

Comments

@richardwhiuk
Copy link

Problem

  • Running cargo publish without having run cargo login results in a complete clean build happening, after which it complains that the login token isn't present.

  • Once you've logged in, running publish again results in yet another clean build.

  • Cargo should abort immediately if you attempt to publish and aren't logged in

Steps

  1. cargo logout
  2. cargo publish
  3. Wait for build to finish
  4. Observe the error message:
    Finished dev [unoptimized + debuginfo] target(s) in 2m 25s
   Uploading swagger v3.0.0
error: no upload token found, please run `cargo login`

Possible Solution(s)

  • Check for a token before running the build

Notes

Output of cargo version: cargo 1.34.0 (6789d8a0a 2019-04-01)

@richardwhiuk richardwhiuk added the C-bug Category: bug label Apr 25, 2019
@ehuss
Copy link
Contributor

ehuss commented Apr 25, 2019

Thanks! I think this was fixed a few days ago in #6854 and should be in the latest nightly.

@ehuss ehuss closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants