Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#128 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@royosherove đang làm issue này rồi.

Từ ngày 11/10/2026.

  • #140 của @royosherove — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
aws, bash, shell
Lĩnh vực
devops, infrastructure

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
73
Fork
11
Merge trung bình
6 giờ 46 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của inceptionstack/lowkey

Tất cả issue của inceptionstack/lowkey

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.