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 by default saves credentials to .cargo/credentials.toml #11533

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

weihanglo
Copy link
Member

What does this PR try to resolve?

Cargo team discussed this in the triage meeting and agree that it has been long enough to write to .cargo/credentials.toml by default.

Fixes #11509.

cc rust-lang/crates.io#5730 rust-lang/crates.io#5732

How should we test and review this PR?

Integration tests included.

Additional information

We also talked about theoretically dropping the support of the old credentials for any new features. That might “force” people to migrate, though doing that has low benefits.

@rustbot
Copy link
Collaborator

rustbot commented Jan 3, 2023

r? @ehuss

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 3, 2023
@weihanglo weihanglo changed the title Cargo by default saves credentials to .cargo/credential.toml Cargo by default saves credentials to .cargo/credentials.toml Jan 3, 2023
Copy link
Member

@Rustin170506 Rustin170506 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good to me. Thanks!

But I found in our Unstable Features docs, we still use the credentials file. Do you know if we need to update it?

@weihanglo
Copy link
Member Author

Fixed. Thank you for the review!

@ehuss
Copy link
Contributor

ehuss commented Jan 4, 2023

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 4, 2023

📌 Commit cff549b has been approved by ehuss

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 4, 2023
@bors
Copy link
Collaborator

bors commented Jan 4, 2023

⌛ Testing commit cff549b with merge 8c5cae1...

@bors
Copy link
Collaborator

bors commented Jan 4, 2023

☀️ Test successful - checks-actions
Approved by: ehuss
Pushing 8c5cae1 to master...

@bors bors merged commit 8c5cae1 into rust-lang:master Jan 4, 2023
@weihanglo weihanglo deleted the issue-11509 branch January 4, 2023 22:56
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jan 14, 2023
8 commits in d992ab4e9034930e7809749f04077045af8f4d79..1cd6d3803dfb0b342272862a8590f5dfc9f72573
2023-01-10 14:36:41 +0100 to 2023-01-12 18:40:36 +0000

- Fix for rust-lang/cargo#11555 (rust-lang/cargo#11568)
- chore: Fix typos (rust-lang/cargo#11561)
- fix(docs): fix typo learm => learn in cargo tree docs (rust-lang/cargo#11560)
- Add fix for CVE-2022-46176 (rust-lang/cargo#11556)
- Fix panic on target dependency errors. (rust-lang/cargo#11541)
- Fix some doc links (rust-lang/cargo#11538)
- Cargo by default saves credentials to `.cargo/credentials.toml` (rust-lang/cargo#11533)
- Fix a typo in the registries documentation. (rust-lang/cargo#11535)
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 14, 2023
Update cargo

8 commits in d992ab4e9034930e7809749f04077045af8f4d79..1cd6d3803dfb0b342272862a8590f5dfc9f72573 2023-01-10 14:36:41 +0100 to 2023-01-12 18:40:36 +0000

- Fix for rust-lang/cargo#11555 (rust-lang/cargo#11568)
- chore: Fix typos (rust-lang/cargo#11561)
- fix(docs): fix typo learm => learn in cargo tree docs (rust-lang/cargo#11560)
- Add fix for CVE-2022-46176 (rust-lang/cargo#11556)
- Fix panic on target dependency errors. (rust-lang/cargo#11541)
- Fix some doc links (rust-lang/cargo#11538)
- Cargo by default saves credentials to `.cargo/credentials.toml` (rust-lang/cargo#11533)
- Fix a typo in the registries documentation. (rust-lang/cargo#11535)
@ehuss ehuss added this to the 1.68.0 milestone Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

should make clear the credentials store path
5 participants