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

deploy/bootstrap.sh: warn() is not defined, so a warning stops the bootstrap

Aperta
#128 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@royosherove ci sta già lavorando.

Dal 11/10/2026.

  • #140 di @royosherove — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
aws, bash, shell

Direzione di ricerca

Read deploy/bootstrap.sh around the helper definitions at lines 80–82 and the three warn calls at lines 519, 558, and 640. Check the open pull request #140, which is already linked to this issue. Done looks like warning paths no longer stop the bootstrap; the report identifies the missing warn helper as the cause.

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

Descrizione

bug crew: in progress good first issue

deploy/bootstrap.sh calls warn at three lines, but the script defines only ok, fail and info (L80-82).

  • L519: ... || warn "cfn-bootstrap install failed ..."
  • L558: warn "User runtime dir not ready after 30s ..."
  • L640: warn "No shell profile found for pack ${PACK_NAME}"

Problem: The script runs with set -euo pipefail. When one of these lines runs, bash gives "warn: command not found" (exit 127). The ERR trap then marks the bootstrap as FAILED. A message that must be only a warning stops the full deploy. For example, a pack with no resources/shell-profile.sh gets to line 640.

Fix: Add one line after line 82:

warn() { echo "[WARN]  $(date -u '+%H:%M:%S') $1"; }

Found by a code read at commit 1e50295. The code was read, but not run on a real instance.

Lingua principale
Shell
Stelle
73
Fork
11
Merge medio
6h 46m
PR unite (30g)
5

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 inceptionstack/lowkey

Tutte le issue di inceptionstack/lowkey

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.