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

fix(performance): go-faster Step 1 reports no Python when the Bash tool runs zsh

クローズ
#6,336 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@kyle-sexton がすでに取り組んでいます。

2026年10月11日 から。

  • #7074 @kyle-sexton による — オープン

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, python, shell, zsh

調査の方向性

Start at plugins/performance/skills/go-faster/SKILL.md around the preamble that sources harness-lib.sh, then plugins/performance/scripts/harness-lib.sh harness_require_python (type -P). Make that lookup portable or wrap the preamble in bash -c, and scan other harness-lib.sh callers. Point the go-faster-sweeper at scripts/harness-lib.sh not lib/. Done when the preamble resolves python3 from a zsh Bash-tool shell and a stay-quiet test covers that.

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

説明

good first issue needs-triage priority: medium

Problem

/performance:go-faster Step 1 reports PY=unresolved ("no python3 or python on PATH runs") on a host where python3 runs, when the Bash tool's shell is zsh. The skill then stops.

The preamble at plugins/performance/skills/go-faster/SKILL.md:35 runs ( source "${CLAUDE_PLUGIN_ROOT}/scripts/harness-lib.sh" && harness_require_python ... ) in the Bash tool's own shell. harness_require_python (plugins/performance/scripts/harness-lib.sh:184-197) resolves each candidate with type -P, which is bash-only. zsh prints type: bad option: -P, every candidate is skipped, and the function dies.

A second defect from the same run: the dispatching session reported this to the go-faster-sweeper agent, and the sweeper could not reproduce it because it looked for harness-lib.sh in the plugin's lib/ directory. The file lives in scripts/.

Evidence

  • 2026-10-04, WSL2 host, Bash tool shell zsh: the preamble printed the HARNESS FAIL line; command -v python3 gave /home/kyle/.local/bin/python3 (3.14.7); bash -c 'source .../scripts/harness-lib.sh && harness_require_python && echo $HARNESS_PYTHON' printed that same path.
  • The sweep's report lists the finding as session-work-4, "not reproduced: harness-lib.sh is not in this plugin's lib directory".

Fix

  • Run the preamble under bash explicitly (bash -c '...'), or make harness_require_python portable (command -v plus an absolute-path check in place of type -P). Check the plugin's other harness-lib.sh callers for the same shape.
  • Point the sweeper at scripts/harness-lib.sh wherever it resolves the library.
  • A stay-quiet test: the preamble resolves Python when run from zsh.

Related

  • #6234 (go-faster from a worktree-isolated session), a different failure in the same skill.
主要言語
Shell
スター
22
フォーク
2
平均マージ
8時間 44分
マージ済み PR(30日)
926

環境構築

はじめの一歩

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

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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