]> git.proxmox.com Git - cargo.git/commit - src/cargo/core/resolver/types.rs
Auto merge of #7973 - ehuss:index-updates, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 20 Apr 2020 19:50:40 +0000 (19:50 +0000)
committerbors <bors@rust-lang.org>
Mon, 20 Apr 2020 19:50:40 +0000 (19:50 +0000)
commit9d84c0c734329a43ca79d748e5624fd8db5706bb
tree259da21ab861aee8f8cd2cc4026669b405a4ba4a
parentc3748091a0663fe0fb3dd8efeb4a616973b9544b
parent65274ea7d5cc02d494a8d61986a2c4d4749c8cd9
Auto merge of #7973 - ehuss:index-updates, r=alexcrichton

Several updates to token/index handling.

This attempts to tighten up the usage of token/index handling, to prevent accidental leakage of the crates.io token.

* Make `registry.index` config a hard error. This was deprecated 4 years ago in #2857, and removing it helps simplify things.
* Don't allow both `--index` and `--registry` to be specified at the same time. Otherwise `--index` was being silently ignored.
* `registry.token` is not allowed to be used with the `--index` flag. The intent here is to avoid possibly leaking a crates.io token to another host.
* Added a warning if source replacement is used and the token is loaded from `registry.token`.

Closes #6545