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

Once we support registry configuration, allow specifying --registry in addition to --index #4498

Closed
carols10cents opened this issue Sep 15, 2017 · 1 comment
Labels
A-registries Area: registries S-needs-mentor Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing. T-cargo Team: Cargo

Comments

@carols10cents
Copy link
Member

And then look up the index location in .cargo/config.

The configuration support is part of RFC 2141 and there's an implementation started by @withoutboats that will hopefully be merged in soon :)

That way, whenever you want to, say, publish to an alternative registry, if you've configured said registry in .cargo/config with a name of "myregistry" like so:

[registries.myregistry]
index = "https://github.com/myorg/crates-registry" 

you'd currently have to run:

cargo publish --index https://github.com/myorg/crates-registry

but we should be able to teach cargo to understand:

cargo publish --registry myregistry

and do the same thing.

@carols10cents
Copy link
Member Author

This should have been closed, not sure why it wasn't!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-registries Area: registries S-needs-mentor Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing. T-cargo Team: Cargo
Projects
None yet
Development

No branches or pull requests

1 participant