bug(install): install.sh prints gawk "escape sequence \. treated as plain ." warnings on RPM hosts
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
Línea de trabajo
Empieza con install.sh y sigue find_rpm_asset para ver cómo se pasan sus expresiones regulares de respaldo a awk. Después, lee tasks/scripts/test-install-sh.sh y ejecuta su cobertura para gawk. La tarea estará terminada cuando las instalaciones de RPM no emitan advertencias de awk, los dos puntos de la expresión regular de respaldo se interpreten literalmente y la prueba falle ante cualquier salida en stderr.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
User Story
I use OpenShell (0.1.3, checked against 0.1.5) on RHEL 9, and I install it with the published install.sh. Each RPM install prints three gawk warnings in the middle of the installer output. Users ask whether the install failed.
Problem Statement
find_rpm_asset builds its fallback regexes as "^openshell-[0-9].*\\.${_arch}\\.rpm$" (and the same for the gateway and prover packages). It passes them to awk with -v fallback_re=.... awk processes escape sequences in -v values, so the \. reaches awk as an escape:
- gawk warns
escape sequence '\.' treated as plain '.'once per regex. - The dot then matches any character instead of a literal dot.
Impact / Why This Matters
- Every RPM install shows three warnings that look like errors.
- The fallback match is looser than intended.
- There is no workaround for users of the published script. A wrapper that pins the script by digest cannot change it.
Acceptance Criteria
- An RPM install on RHEL 9 (gawk) prints no awk warnings.
- The fallback regex matches a literal
.before the arch and beforerpm. -
tasks/scripts/test-install-sh.shcoversfind_rpm_assetunder gawk and fails on any stderr output.
Reproduction Steps
- On RHEL 9, run
curl -fsSL https://raw.githubusercontent.com/NVIDIA/OpenShell/v0.1.5/install.sh | sh(RPM path).
Expected: no awk warnings.
Actual: three gawk warnings.
Suggested UX (if applicable)
None.
Environment
- OpenShell
install.shand checksum-verified RPM packages from v0.1.5. - RHEL 9.8 UBI RPM container on a RHEL 9.8 host, kernel 5.14.0-687.45.1.el9_8.x86_64; gawk 5.1.0; Docker 29.8.1; Podman 5.8.2. Host KVM was present but not used for this installer repro.
Logs
awk: warning: escape sequence `\.' treated as plain `.'
awk: warning: escape sequence `\.' treated as plain `.'
awk: warning: escape sequence `\.' treated as plain `.'
openshell: installed openshell RPM packages from v0.1.5
- Lenguaje dominante
- Rust
- Estrellas
- 17.1k
- Forks
- 1.8k
- Merge medio
- 2 d 11 h
- PR fusionados (30 d)
- 329
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA/OpenShell
-
bug: workspace access hint suggests a --subject command that fails for hyphen-leading OIDC subjectsQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
state:triage-needed
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
bug(sdk/go): browser login callback binds 127.0.0.1 but redirect_uri uses localhostQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertostate:triage-needed
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
NVIDIA/OpenShell#4518 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
state:triage-needed
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA/OpenShell
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
FavioVazquez/mollify#62 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
fendouai/awesome-deepseek-harness#125 ·
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
rust-embedded/heapless#694 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día