Skip to content

buildRustPackage: fix deprecated use of registry.index config key - #22987

Merged
zimbatm merged 1 commit into
NixOS:masterfrom
anderspapitto:rust-registry-index
Feb 19, 2017
Merged

zimbatm merged 1 commit into
NixOS:masterfrom
anderspapitto:rust-registry-index

Conversation

@anderspapitto

Copy link
Copy Markdown
Contributor

See
rust-lang/cargo@8214bb9
for the cargo commit which deprecated the registry.index key, and
implements this as a replacement. This gets rid of the error message

warning: custom registry support via the registry.index configuration is being removed, this functionality will not work in the future

I tested by faking a depsSha256 for a package using buildRustPackage, rebuilding, and verifying that

  1. the warning goes away
  2. it still doesn't talk to crates.io (i.e. I didn't break it)

See
rust-lang/cargo@8214bb9
for the cargo commit which deprecated the registry.index key, and
implements this as a replacement. This gets rid of the error message

warning: custom registry support via the `registry.index` configuration is being removed, this functionality will not work in the future
@mention-bot

Copy link
Copy Markdown

@anderspapitto, thanks for your PR! By analyzing the history of the files in this pull request, we identified @wizeman, @madjar and @abbradar to be potential reviewers.

@zimbatm
zimbatm merged commit 6dbb3ab into NixOS:master Feb 19, 2017
@grahamc

grahamc commented Feb 27, 2017

Copy link
Copy Markdown
Member

Awesome, thank you!

@grahamc

grahamc commented Mar 1, 2017

Copy link
Copy Markdown
Member

Hi @anderspapitto, it looks like this change has broken building some packages. Can you help? #23282

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

Successfully merging this pull request may close these issues.

4 participants