Repo checker: a result with only unknown or unchecked packages shows "Fix it" and copies a fix prompt that lists nothing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, node.js
- 領域
- frontend
調査の方向性
site/check/check.mjs の renderNext() から始めてください。h.unknown > 0 のとき isClean が false になります。また site/check/check-logic.mjs の fixPrompt() では、ギャップのない行が unchecked に落ちています。check-logic.mjs に、タイトルとプロンプトを表示するかどうかを返す、エクスポートされた nextSection(h, notChecked) を追加し、renderNext() で使ってください。unknown のみの場合と not-checked のみの場合に、copy-prompt を非表示にして "Check it locally" が表示され、ギャップと unknown が両方ある場合は引き続き "Fix it" が表示されること、そして node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjs がオフラインで通ることを完了条件とします。
索引モデルが issue の本文から書いたものです。
説明
When the only problem in a result is packages that couldn't be checked (unknown, no gaps), the repo checker still shows the Fix it section with "Copy a fix prompt for your coding agent". The prompt it copies says gaps were found and then lists none:
Read from site/check/ on main, and fixPrompt() run in Node for a result with one unknown row and no gaps:
In o/r, wheelgap found dependencies in uv.lock with no prebuilt wheel for some of the platforms we target (Python 3.13 on linux-x86_64), so they'd be compiled from source or fail to install.
Check each bump against our version constraints (a new major version may need code changes), update the lockfile with the project's own tool, and confirm with:
uvx wheelgap uv.lock -p 3.13 -t linux-x86_64
...
There is nothing to bump. The same happens for a result with no gaps where a private index's packages weren't checked (the page test pins "Fix it" for both cases today). The headline for the unknown-only result is right ("No package is missing a wheel, but 1 of 3 couldn't be checked …"); what's left to do is run the check locally, where it can see what the page couldn't.
Where
renderNext()insite/check/check.mjs:isCleanis false whenh.unknown > 0, so the title is "Fix it" andcopy-prompt/prompt-notestay visible.fixPrompt()insite/check/check-logic.mjs: rows with no gaps are skipped (fixFor()returnsunchecked), so an unknown-only result gives the opening sentence and no list.
What to do
- Add a small exported function in
check-logic.mjs, e.g.nextSection(h, notChecked), that returns the title and whether to show the prompt: "Keep it green" (clean, as now), "Fix it" with the prompt (any gap, as now), and "Check it locally" without the prompt when there are no gaps but some unknowns or some packages not checked. Use it inrenderNext(). - The CLI command under it stays as it is (with
--index-url YOUR_INDEX_URLwhen packages weren't checked).
Done when
- Tests in
tests/site/check-logic.test.mjsfor the three cases, including gaps and unknowns together ("Fix it"). The unknown-only one fails onmain(or, if you add the function, show in the PR thatrenderNext()gave "Fix it" for it before). - In
tests/site/check-page.test.mjs, thewithUnknownsandwithPrivatecases (they assert "Fix it" today) now expect "Check it locally" withcopy-prompthidden;withGapsis unchanged. -
node --test tests/site/check-logic.test.mjs tests/site/check-page.test.mjspasses. The tests need no network.
- 主要言語
- JavaScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 1時間 37分
- マージ済み PR(30日)
- 134
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wheelgap/tracker のほかの issue
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 半日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
メンテナーはふだん 1 日以内に返信
wheelgap/tracker の issue をすべて見る
似ている issue
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
-
data good first issue help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
pacocartones/free-llm-api-hub#747 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
BCStudentSoftwareDevTeam/cas#481 ·
メンテナーはふだん 7 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信