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

Installers: shellcheck fails on the BReg, Casework, and evidencectl installers

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

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

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

評価

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

調査の方向性

crates/registry-breg/install.sh、crates/registry-casework/install.sh、crates/registry-evidencectl/install.sh にあるフラグ付きの文を、crates/registry-scheduling/install.sh にある修正済みの形式と比較します。5つの crates/*/install.sh ファイルと editors/install.sh に対して shellcheck を実行し、続けて release/scripts/test_macos_installers.py、release/scripts/test_nightly_release.py、および crate の install_script テストを実行します。すべてのチェックに合格すれば完了です。

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

説明

area:release bug

What

shellcheck exits non-zero on three of the four product installers on main (checked 2026-10-03), with the same two warnings in each:

File SC2034 SC2155
crates/registry-breg/install.sh line 329 line 500
crates/registry-casework/install.sh line 327 line 498
crates/registry-evidencectl/install.sh line 333 line 515
  • SC2034: IFS=. read -r release_major release_minor release_patch <<<"${version#v}" reads release_patch and never uses it.
  • SC2155: local archive="$tmpdir/$(asset_name "$binary")" declares and assigns in one statement, so a failing asset_name is masked by local's own exit status and set -e does not stop the script.

crates/registry-scheduling/install.sh and editors/install.sh pass. The Scheduling installer has the same two statements in the corrected form, from #1854:

IFS=. read -r release_major release_minor _ <<<"${version#v}"
local archive
archive="$tmpdir/$(asset_name "$binary")"

Both lines are hand-written; neither sits inside the blocks generated by release/scripts/render-installer-channel.py or release/scripts/render-installer-libc-preflight.py.

Why it is filed rather than fixed

It was found while changing the Scheduling installer in #1854, and the other three installers were outside that change.

No workflow under .github/workflows runs shellcheck, which is how the installers drifted apart. Whether to add a gate is a separate decision from the two-line fix, so it is listed as optional below.

Done when

  • shellcheck passes on all five crates/*/install.sh files and editors/install.sh.
  • The installer test suites still pass (release/scripts/test_macos_installers.py, release/scripts/test_nightly_release.py, and each crate's install_script tests).
  • Optional: a CI step runs shellcheck on the installers so the next copy does not drift.
主要言語
Rust
スター
2
フォーク
0
平均マージ
9時間 14分
マージ済み PR(30日)
241

環境構築

はじめの一歩

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

registrystack/registry-stack のほかの issue

registrystack/registry-stack の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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