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

rustup update nightly fails with missing key: 'url'. #1174

Closed
alex-ozdemir opened this issue Jun 21, 2017 · 5 comments
Closed

rustup update nightly fails with missing key: 'url'. #1174

alex-ozdemir opened this issue Jun 21, 2017 · 5 comments

Comments

@alex-ozdemir
Copy link

$ rustup update nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
error: missing key: 'url'

Version:

$ rustup --version
rustup 1.4.0 (a77fbedf2 2017-06-09)

Unsure if the underlying cause is related to #1062.

@alex-ozdemir
Copy link
Author

alex-ozdemir commented Jun 21, 2017

Welp, this seems fixed for me. I'm unsure why. The interesting sequence of events:

$ rustup update nightly
error: missing key: 'url'
$ rustup --version
  // something old

$ rustup self update
$ rustup --version
rustup 1.4.0 (a77fbedf2 2017-06-09)
$ rustup update nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
error: missing key: 'url'
// Welp. I file the issue

$ rustup install nightly-2017-06-18
$ rustup default nightly-2017-06-18
// Working on things
// ...
// Even *that* version of the compiler becomes too old for this particular work
$ rustup update nightly
// Correctly updates.
// Wat?

I'll leave the issue open here so that relevant people see it.

@Diggsey
Copy link
Contributor

Diggsey commented Jun 25, 2017

Fixed in #1063

@Diggsey Diggsey closed this as completed Jun 25, 2017
@shepmaster
Copy link
Member

shepmaster commented Jul 19, 2017

This happened last night again (and seems to still be the case today) for beta:

Step 10/15 : RUN rustup default "${channel}-${date}"
 ---> Running in 075281f84d5b
info: syncing channel updates for 'beta-2017-07-18-x86_64-unknown-linux-gnu'
error: missing key: 'url'
The command '/bin/sh -c rustup default "${channel}-${date}"' returned a non-zero code: 1

/cc @erickt

@CryZe
Copy link

CryZe commented Jul 19, 2017

@shepmaster It's because Travis CI's rustup is still on 1.4.0

Does anyone know where this is in Travis CI's repositories?

@shepmaster
Copy link
Member

shepmaster commented Jul 19, 2017

@CryZe haha, you answered my question, but for the wrong reason 😉

I don't use Travis' rustup, but I bet my Docker containers have an old version of rustup installed. I install rustup with just a curl command, which Docker can't tell needs to be updated over time. I avoid the similar problem with Rust proper because I download a manifest file and grab the latest stable/beta/nightly dates for that and parameterize the Docker build using them, which busts the cache.

I'll have to look to see if rustup has something similar I can use.

Thanks!

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

4 participants