-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[beta-1.68] Backport fixes #11674
[beta-1.68] Backport fixes #11674
Conversation
…Eh2406 Do not error for `auth-required: true` without `-Z sparse-registry` Registries that include `auth-required: true` in their `config.json` currently hit the following error on stable: ``` authenticated registries require `-Z registry-auth` ``` This situation makes it difficult for a registry to optionally offer the `auth-required: true` feature, since it forces users on to the nightly toolchain. This PR changes the behavior to ignore the `auth-required: true` field of `config.json` without `-Z registry-auth`. The downside to this change is that it makes it harder to discover why a registry isn't working, since the user will get an HTTP 401 error from the server, rather than a message from Cargo suggesting adding `-Z registry-auth`. r? `@Eh2406`
Verify source before recompile
r? @epage (rustbot has picked a reviewer for you, use r? to override) |
|
@rust-lang/cargo any objection or concern? |
This is able to be merged, as the CI error in nightly has been fixed. |
@bors r+ |
💔 Test failed - checks-actions |
My mistake 😅. Need to wait one more day. |
@bors r+ |
💡 This pull request was already approved, no need to approve it again.
|
☀️ Test successful - checks-actions |
1 commits in 0762e3bbdb6fa64b6859154199ec47d6c90c731c..ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d 2023-01-30 22:07:51 +0000 to 2023-02-09 03:13:43 +0000 - [beta-1.68] Backport fixes (rust-lang/cargo#11674)
…nglo [beta-1.68] cargo beta backports 1 commits in 0762e3bbdb6fa64b6859154199ec47d6c90c731c..ddf05ad7a66f4cfbe79d7692b84aa144c1aac34d 2023-01-30 22:07:51 +0000 to 2023-02-09 03:13:43 +0000 - [beta-1.68] Backport fixes (rust-lang/cargo#11674) r? `@ghost`
Beta backports:
auth-required: true
without-Z registry-auth
#11661 — Do not error forauth-required: true
without-Z sparse-registry