Repo checker: the copied fix prompt tells the agent to confirm with a command that has no --index-url when private packages went unchecked

未关闭 适合新手
#249 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
frontend

调研方向

从 site/check/check-logic.mjs 中约第 623 行的 fixPrompt 开始,将其“confirm with”行与 renderNext 使用 notCheckedCount(r) 构建的页面命令进行比较。将未检查数量传入 fixPrompt,当其大于 0 时,追加 --index-url YOUR_INDEX_URL,并附上一句简短说明,提示使用项目的索引 URL。在 tests/site/check-logic.test.mjs 中为未检查和全部已检查两种路径添加测试用例。完成标准是:未检查的用例与页面一致,且无未检查项时的输出保持不变。

由索引模型根据 Issue 内容生成。

描述

bug good first issue

After #248, the page's CLI command gets --index-url YOUR_INDEX_URL when a private index's packages weren't checked. The fix prompt's "confirm with" line (fixPrompt in site/check/check-logic.mjs, around line 623) still uses the plain cliCommand. When gaps and unchecked private packages show together, the copied prompt tells the coding agent to confirm with a command that looks the private names up on PyPI, which the privateText comment says to avoid, and the page's command and the prompt's disagree.

Done when

  • fixPrompt takes the unchecked count (as renderNext does with notCheckedCount(r)) and, when it's above 0, appends --index-url YOUR_INDEX_URL to the confirm command, plus a few words saying to put the project's index URL there. Never a real URL.
  • With no unchecked packages the prompt is byte-for-byte as today.
  • Tests in tests/site/check-logic.test.mjs for both cases, failing on main.
主要语言
JavaScript
星标
0
派生
0
平均合并
1 小时 38 分钟
30 天内合并 PR
132

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wheelgap/tracker 的其他 Issue

查看 wheelgap/tracker 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。