Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Fail `lock_shared() not supported` on termux

Abierto
#5,151 7 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
54/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
cli

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Rust
Estrellas
7.1k
Forks
1.1k
Merge medio
1 d 56 min
PR fusionados (30 d)
37

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rust-lang/rustup

Todos los issues de rust-lang/rustup

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.