Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Fail `lock_shared() not supported` on termux

Aperta
#5,151 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
54/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Start by reproducing the failure with rustup toolchain list in Termux after rustup self update; the issue gives the error and the settings file contents but names no source file or test. Trace how rustup reads ~/.rustup/settings.toml and handles shared file locks on Termux, then identify or add coverage for that path. Done when toolchain listing no longer fails with lock_shared() not supported.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
$ rustup -h
rustup 1.25.2 (17db695f1 2023-02-01)
The Rust toolchain installer

USAGE:
    rustup [FLAGS] [+toolchain] <SUBCOMMAND>

FLAGS:
    -v, --verbose    Enable verbose output
    -q, --quiet      Disable progress output
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <+toolchain>    release channel (e.g. +stable) or custom toolchain to set override

SUBCOMMANDS:
    show           Show the active and installed toolchains or profiles
    update         Update Rust toolchains and rustup
    check          Check for updates to Rust toolchains and rustup
    default        Set the default toolchain
    toolchain      Modify or query the installed toolchains
    target         Modify a toolchain's supported targets
    component      Modify a toolchain's installed components
    override       Modify directory toolchain overrides
    run            Run a command with an environment configured for a given toolchain
    which          Display which binary will be run for a given command
    doc            Open the documentation for the current toolchain
    man            View the man page for a given command
    self           Modify the rustup installation
    set            Alter rustup settings
    completions    Generate tab-completion scripts for your shell
    help           Prints this message or the help of the given subcommand(s)

DISCUSSION:
    Rustup installs The Rust Programming Language from the official
    release channels, enabling you to easily switch between stable,
    beta, and nightly compilers and keep them updated. It makes
    cross-compiling simpler with binary builds of the standard library
    for common platforms.

    If you are new to Rust consider running `rustup doc --book` to
    learn Rust.
$ rustup toolchain list
no installed toolchains
$ which rustup
/data/data/com.termux/files/home/.cargo/bin/rustup
$ rustup self update
info: checking for self-updates
info: downloading self-update
  rustup updated - 1.29.1 (from 1.25.2)

$ rustup toolchain list
error: could not read settings file: '/data/data/com.termux/files/home/.rustup/settings.toml': lock_shared() not supported
$ vi ~/.rustup/
settings.toml  tmp/           update-hashes/
$ vi ~/.rustup/settings.toml
$ cat ~/.rustup/settings.toml
profile = "default"
version = "12"

[overrides]
$

@rustbot label +bug

Lingua principale
Rust
Stelle
7.1k
Fork
1.1k
Merge medio
16h 28m
PR unite (30g)
36

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-lang/rustup

Tutte le issue di rust-lang/rustup

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.