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

Allow rustup to handle unavailable packages #1063

Merged
merged 1 commit into from
Jun 22, 2017

Commits on Jun 22, 2017

  1. Allow rustup to handle unavailable packages

    Before this, if a package was unavailable (like nightly is at the moment),
    it would error out with a message like "error: missing key: 'url'" because
    at the moment a few of the rust-analysis packages didn't build. This resulted
    in the `channel-rust-nightly.toml` to be created with blocks like this:
    
    ```toml
    [pkg.rust-analysis.target.aarch64-apple-ios]
    available = false
    
    [pkg.rust-analysis.target.aarch64-linux-android]
    available = false
    
    [pkg.rust-analysis.target.aarch64-unknown-fuchsia]
    available = false
    
    [pkg.rust-analysis.target.aarch64-unknown-linux-gnu]
    available = true
    hash = "be50ffa6f94770929b53bae553977cb6d78b03506f033d14a7251c7b0cdb9035"
    url = "https://static.rust-lang.org/dist/2017-04-13/rust-analysis-nightly-aarch64-unknown-linux-gnu.tar.gz"
    ```
    
    rustup assumed that there'd always be a `hash` and `url`, which is not
    the case when packages are unavaible. This patch then just updates
    rustup to handle their absence.
    erickt authored and brson committed Jun 22, 2017
    Configuration menu
    Copy the full SHA
    ea39fe0 View commit details
    Browse the repository at this point in the history