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

Respect source replacement configuration #269

Closed
dragonmaus opened this issue Jan 8, 2019 · 1 comment
Closed

Respect source replacement configuration #269

dragonmaus opened this issue Jan 8, 2019 · 1 comment

Comments

@dragonmaus
Copy link

dragonmaus commented Jan 8, 2019

(This is briefly mentioned in #201, but is a separate issue and demands a deeper solution than the --registry flag suggested therein.)

If the user has a source replacement configured in $HOME/.cargo/config, commands that query the registry must use that instead of hitting crates.io.

Example configuration:

[source.crates-io]
replace-with = "mirror"

[source.mirror]
local-registry = "/path/to/registry"

Expected result:

  • dependencies are changed/upgraded based on what is available in /path/to/registry
  • crates.io is not queried

Actual result:

  • command tries to query crates.io
@dragonmaus dragonmaus changed the title Respect source mirror configuration Respect source replacement configuration Jan 8, 2019
@DCjanus
Copy link
Contributor

DCjanus commented Aug 25, 2019

Resolved by #317

related to #311

@ordian ordian closed this as completed Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants