Skip to content

set RUSTUP_UPDATE_ROOT to empty update failed to parse url #4419

@A4-Tacks

Description

@A4-Tacks

Verification

Problem

When RUSTUP_UPDATE_ROOT is empty, the URL will still be concatenated

Steps

  1. Run RUSTUP_DIST_SERVER= RUSTUP_UPDATE_ROOT= rustup update nightly

    Output:

    info: syncing channel updates for 'nightly-aarch64-unknown-linux-gnu'
    
      nightly-aarch64-unknown-linux-gnu unchanged - rustc 1.90.0-nightly (9982d6462 2025-07-20)
    
    info: checking for self-update
    error: failed to parse url: /release-stable.toml: relative URL without a base
    

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.28.2 (e4f3ad6f8 2025-04-28)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.90.0-nightly (9982d6462 2025-07-20)`

Installed toolchains

Default host: aarch64-unknown-linux-gnu
rustup home:  /home/lrne/.rustup

installed toolchains
--------------------
stable-aarch64-unknown-linux-gnu
nightly-aarch64-unknown-linux-gnu (active, default)

active toolchain
----------------
name: nightly-aarch64-unknown-linux-gnu
active because: it's the default toolchain
installed targets:
  aarch64-unknown-linux-gnu

OS version

ArchLinux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions