-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
C-bugCategory: bugCategory: bug
Description
Problem
-
Running
cargo publishwithout having runcargo loginresults 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
cargo logoutcargo publish- Wait for build to finish
- 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)
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bug