Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

install.sh: instance size menu does not pre-select the default size

オープン 初心者向け
#134 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
aws, shell
領域
cli, cloud

調査の方向性

install.sh の 2556~2583 行にあるサイズ選択ロジック、特に default_type の計算と gum choose --selected の呼び出しを読みます。サポートされている各インスタンスタイプを完全なオプションラベルに対応付け、デフォルトの選択が pack に必要な最小サイズと一致することを確認します。必要なサイズが事前選択され、Enter を押しても小さすぎるインスタンスがデプロイされなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

bug good first issue

install.sh L2579-2583:

_gum_or_die size_choice $GUM choose --header "Instance size" \
  --selected "${default_type}  — recommended" \
  "t4g.medium  — 2 vCPU,  4GB  ~\$25/mo   light use" \
  "t4g.large   — 2 vCPU,  8GB  ~\$50/mo   regular use" \
  "t4g.xlarge  — 4 vCPU, 16GB  ~\$100/mo  recommended" || size_choice=""

Problem: gum choose --selected must get the full option text. The text "t4g.xlarge — recommended" is not equal to any option, so no option is pre-selected and the cursor stays on t4g.medium. If the user pushes Enter, the installer deploys t4g.medium, also when the pack needs a larger minimum size (L2556-2572).

Fix: Map default_type to its full option label and pass that label to --selected. For example:

local sel
case "$default_type" in
  t4g.medium) sel="t4g.medium  — 2 vCPU,  4GB  ~\$25/mo   light use" ;;
  t4g.large)  sel="t4g.large   — 2 vCPU,  8GB  ~\$50/mo   regular use" ;;
  *)          sel="t4g.xlarge  — 4 vCPU, 16GB  ~\$100/mo  recommended" ;;
esac

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

主要言語
Shell
スター
73
フォーク
11
平均マージ
6時間 46分
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

inceptionstack/lowkey のほかの issue

inceptionstack/lowkey の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。