-
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
Support specifying API location everywhere rather than requiring specifying index location #4208
Comments
I can't understand. This issue supposes to change index->host. #4209 changes host->index in publish subcommand. Could please someone explain why it has been merged? |
|
#4209 changes the name of the argument; previously the argument was named host but needed the location of an index to work at all. This issue is to actually take a host instead of an index location, everywhere, and the functionality of cargo and crates.io will need to be changed in order to close this issue. Does that clear it up? Please file a new issue for |
Ah got it! Thank you for clarification. |
notes from chatting with @carols10cents:
|
Replace `cargo search --host` with `cargo search --index` This change makes the command consistent with other versions of the same flag. `cargo search --host` is still supported, as well as `cargo search --index <index> --host <host>` in case of confusion. The three commands currently supported should produce the same behavior. All instances of `--host` are currently marked as deprecated, or for reuse as mentioned in issue #4208. Fixes #4219
I just wanted to voice my concern about this proposed change. For multiple repository hosting solutions like nexus and artifactory it needs to be possible to specify a path as well. For instance, artifactory hosts npm repos at |
So I think there are two issues here which are a bit entangled: First, it seems like a bad UX to mention Second, @carols10cents says this:
(Note that @bbatha's response is IMO a misunderstanding: while this discussion has used URL and host interchangeably, we would definitely support arbitrary URLs and you could serve multiple registries under the same domain name.) I don't have a formed opinion about whether the API server or the index should be the "hypermedia root" of a registry's API, but today it is the case that the root is the index. The index has a How would the migration work to a new system in which the API server reports the URL of the index instead of the other way around? What are the advantages of moving to a system that works this way? Do they outweigh the cost of that migration? Not saying we shouldn't do this, just trying to suss out the trade off between a possibly better system and performing the migration. |
Agreed! |
Is this moot now that we have |
There's still the stuff about crates.io saying the github index instead of something more user friendly, unless that was fixed? But maybe this should be closed and a new, narrower issue should be opened? |
Don't print crates.io-index URL when Updating Following the lead from PackageId's Display, only display the registry's URL if it's not the default registry (aka crates.io). Before: $ cargo install lazy_static Updating registry `https://github.com/rust-lang/crates.io-index` After: $ dcargo install lazy_static Updating crates.io index Fixes #4208
Any update on cargo/src/cargo/util/command_prelude.rs Lines 556 to 559 in bf1a26d
|
@alexcrichton has expressed interest in this in places like this comment and I agree:
Basically I don't think we should have to specify the location of an index anywhere ever, including within cargo's code, we should only ever have to specify the URL of the API server and that API should know where to find its index.
The text was updated successfully, but these errors were encountered: