Skip to content

error: missing key: 'url' #1062

Closed
Closed
@saghm

Description

@saghm

When running rustup update, I get the following output:

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

       stable-x86_64-unknown-linux-gnu unchanged - rustc 1.16.0 (30cf806ef 2017-03-10)
  nightly-x86_64-unknown-linux-gnu update failed - rustc 1.18.0-nightly (c58c928e6 2017-04-11)

As the targets for the channels suggest, I'm running an x86_64 Linux machine. I have rustup 1.2.0 installed.

Activity

Xudong-Huang

Xudong-Huang commented on Apr 13, 2017

@Xudong-Huang

have the same issue in Mac

$ rustup --version
rustup 1.2.0 (70faf07 2017-04-08)

$ rustup update
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
error: missing key: 'url'
info: checking for self-updates

  nightly-x86_64-apple-darwin update failed - rustc 1.17.0-nightly (ccce2c6eb 2017-03-27)

$ rustup install nightly-x86_64-apple-darwin
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
173.9 KiB / 173.9 KiB (100 %)  41.4 KiB/s ETA:   0 s
error: missing key: 'url'
paholg

paholg commented on Apr 13, 2017

@paholg

I have the same issue when Travis CI tries to install Rust nightly using travis-cargo. Stable and beta work, though.

Installing Rust
$ curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y
info: downloading installer
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
error: missing key: 'url'
rustup: command failed: /tmp/tmp.GY1L9aI7C8/rustup-init --default-toolchain=nightly -y

$ curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y
info: downloading installer
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
error: missing key: 'url'

The command "curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y" failed and exited with 1 during .
carols10cents

carols10cents commented on Apr 13, 2017

@carols10cents
Member

@erickt and I are looking into this and coordinating investigation in the #rust-infra IRC room

erickt

erickt commented on Apr 13, 2017

@erickt
Contributor

This might have been broken by rust-lang/rust#40584, which modifies the code that I think generates https://static.rust-lang.org/dist/channel-rust-nightly.toml.

cc @nrc / @alexcrichton / @brson

carols10cents

carols10cents commented on Apr 13, 2017

@carols10cents
Member

from https://static.rust-lang.org/dist/channel-rust-nightly.toml, rls part is indeed missing url: that the other parts have:

[pkg.rls]
version = "0.1.0-nightly (016cbc514 2017-04-08)"

[pkg.rls.target]
carols10cents

carols10cents commented on Apr 13, 2017

@carols10cents
Member

wait though, there are other things in this file that don't have url:


[[pkg.rust.target.x86_64-unknown-netbsd.extensions]]
pkg = "rust-std"
target = "i686-unknown-linux-gnu"
emmaworley

emmaworley commented on Apr 13, 2017

@emmaworley

I have the same issue on osx.

[19:56:31] ~ rustup --version
rustup 1.2.0 (70faf07 2017-04-08)
[19:56:34] ~ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: checking for self-updates

  stable-x86_64-apple-darwin unchanged - rustc 1.16.0 (30cf806ef 2017-03-10)

[19:56:39] ~ rustup install nightly
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
error: missing key: 'url'
carols10cents

carols10cents commented on Apr 13, 2017

@carols10cents
Member

acrichto> 2 bugs here
11:02 PM 1) rustup doesn't handle available = false well
11:02 PM 2) we're not producing analysis packages for targets

carols10cents

carols10cents commented on Apr 13, 2017

@carols10cents
Member

acrichto> rustup bug is here -
11:04 PM https://github.com/rust-lang-nursery/rustup.rs/blob/master/src/rustup-dist/src/manifest.rs#L231
11:04 PM that's just not handling the case where available = false
11:04 PM avialale = false is intended for "this failed to build tonight but we decided to ship a nightly"
11:04 PM in practice that's never been exercised

carols10cents

carols10cents commented on Apr 13, 2017

@carols10cents
Member

Alex is fixing the rustbuild side of this but testing it might take some time and might not be fixed until tomorrow PDT.

sophiajt

sophiajt commented on Apr 13, 2017

@sophiajt

@carols10cents thanks for the heads up.

If there are rls-related things that need to be fixed, lemme know (though I'll soon be out for the next four days for Easter break)

liuchong

liuchong commented on Apr 13, 2017

@liuchong

same on debian testing

alexcrichton

alexcrichton commented on Apr 13, 2017

@alexcrichton
Member

I've submitted a fix for rust-lang/rust at rust-lang/rust#41267

37 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mcandre@alexcrichton@michaelmior@erickt@carols10cents

        Issue actions

          error: missing key: 'url' · Issue #1062 · rust-lang/rustup