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

Installers: shellcheck fails on the BReg, Casework, and evidencectl installers

Abierto Apto para principiantes
#1,874 0 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
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
86/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, shell
Área
release, tooling

Línea de trabajo

Compara las instrucciones señaladas en crates/registry-breg/install.sh, crates/registry-casework/install.sh y crates/registry-evidencectl/install.sh con las formas corregidas en crates/registry-scheduling/install.sh. Ejecuta shellcheck en los cinco archivos crates/*/install.sh y en editors/install.sh; después ejecuta release/scripts/test_macos_installers.py, release/scripts/test_nightly_release.py y las pruebas install_script de los crates; se considera terminado cuando todas las comprobaciones pasan.

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

Descripción

area:release bug

What

shellcheck exits non-zero on three of the four product installers on main (checked 2026-10-03), with the same two warnings in each:

File SC2034 SC2155
crates/registry-breg/install.sh line 329 line 500
crates/registry-casework/install.sh line 327 line 498
crates/registry-evidencectl/install.sh line 333 line 515
  • SC2034: IFS=. read -r release_major release_minor release_patch <<<"${version#v}" reads release_patch and never uses it.
  • SC2155: local archive="$tmpdir/$(asset_name "$binary")" declares and assigns in one statement, so a failing asset_name is masked by local's own exit status and set -e does not stop the script.

crates/registry-scheduling/install.sh and editors/install.sh pass. The Scheduling installer has the same two statements in the corrected form, from #1854:

IFS=. read -r release_major release_minor _ <<<"${version#v}"
local archive
archive="$tmpdir/$(asset_name "$binary")"

Both lines are hand-written; neither sits inside the blocks generated by release/scripts/render-installer-channel.py or release/scripts/render-installer-libc-preflight.py.

Why it is filed rather than fixed

It was found while changing the Scheduling installer in #1854, and the other three installers were outside that change.

No workflow under .github/workflows runs shellcheck, which is how the installers drifted apart. Whether to add a gate is a separate decision from the two-line fix, so it is listed as optional below.

Done when

  • shellcheck passes on all five crates/*/install.sh files and editors/install.sh.
  • The installer test suites still pass (release/scripts/test_macos_installers.py, release/scripts/test_nightly_release.py, and each crate's install_script tests).
  • Optional: a CI step runs shellcheck on the installers so the next copy does not drift.
Lenguaje dominante
Rust
Estrellas
2
Forks
0
Merge medio
11 h 3 min
PR fusionados (30 d)
246

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 registrystack/registry-stack

Todos los issues de registrystack/registry-stack

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.