[Pkg-rust-maintainers] Bug#1088260: Debian-packaged rustup should have self-update disabled

Josh Triplett josh at joshtriplett.org
Tue Nov 26 01:36:03 GMT 2024


Package: rustup
Version: 1.26.0-8+b2
Severity: important
X-Debbugs-Cc: josh at joshtriplett.org

rustup has a built-in mechanism to disable self-update when installed
system-wide. However, the Debian rustup packages don't seem to have it
disabled. As a result, running things like `rustup install stable` or
`rustup update` produces an error:

error: rustup is not installed at `/path/to/.cargo`

(Where `/path/to/.cargo` is the path to the user's `.cargo` directory,
typically in their home directory.)

This error also causes such commands to exit with an error, which can
break scripts, automated builds, CI, and similar.

Running `rustup update --no-self-update` suppresses that error.

Please update the Debian package to set the `no-self-update` feature
flag, which should disable this and avoid the error.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 6.11.10-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rustup depends on:
ii  libc6               2.40-4
ii  libcurl3t64-gnutls  8.11.0-1
ii  libgcc-s1           14.2.0-8
ii  liblzma5            5.6.3-1+b1
ii  libssl3t64          3.3.2-2
ii  libzstd1            1.5.6+dfsg-1+b1

rustup recommends no packages.

rustup suggests no packages.

-- no debconf information



More information about the Pkg-rust-maintainers mailing list