bug(install): install.sh prints gawk "escape sequence \. treated as plain ." warnings on RPM hosts
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
Direzione di ricerca
Inizia con install.sh e segui find_rpm_asset per vedere come le sue espressioni regolari di fallback vengono passate ad awk. Poi leggi tasks/scripts/test-install-sh.sh ed esegui la relativa copertura per gawk. Il lavoro è completato quando le installazioni RPM non producono avvisi di awk, entrambi i punti nell’espressione regolare di fallback vengono interpretati letteralmente e il test fallisce in presenza di qualsiasi output su stderr.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 17.1k
- Fork
- 1.8k
- Merge medio
- 2g 8h
- PR unite (30g)
- 370
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NVIDIA/OpenShell
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug(sdk/go): browser login callback binds 127.0.0.1 but redirect_uri uses localhostForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertastate:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
NVIDIA/OpenShell#4518 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug(sdk/go): edge (Cloudflare Access) token is cached for the client lifetime and never reloadedApertastate:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NVIDIA/OpenShell#4515 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
state:triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NVIDIA/OpenShell
Issue simili
-
Docker host resolution missing default rootless Docker pathForse già presa @500B l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
testcontainers/testcontainers-rs#1000 ·
I maintainer di solito rispondono entro 3 giorni
-
bug needs triage P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
pbakaus/impeccable#1143 ·
I maintainer di solito rispondono entro 1 giorno
-
Bundled uv is never updated and trusts the compromised eMudhra certificatesForse già presa @FabienDanieau l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
foxglove/mcap#1907 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno