Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Shell-quote source IDs in caseworkctl BReg package recovery commands

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

从 crates/registry-caseworkctl/src/breg_package.rs 开始,重点关注 caseworkctl check --against-breg-package,以及现有的、用于项目路径和包路径的 shell_word 用法。在两个恢复命令中都通过 shell_word 传递 source ID,然后添加并运行一个使用包含空白字符和 shell 元字符的 ID 的单元测试。完成的标准是:复制的命令将 source ID 保留为一个字面量参数。

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

描述

area:casework bug criticality:p3 triage:needs-implementation

Problem

caseworkctl check --against-breg-package builds recovery commands (the recheck command and repin_command) with an unquoted --source-id. CaseworkProject::check only requires a source ID to be non-empty and unique, so an ID containing whitespace or shell metacharacters yields a command that the shell splits or interprets when an operator copies it.

Fix direction

Pass the source ID through the existing shell_word helper, as the project and package paths already are, and add a unit test with a source ID containing a space and a metacharacter.

Raised by the Codex review on #1718 (crates/registry-caseworkctl/src/breg_package.rs).

主要语言
Rust
星标
2
派生
0
平均合并
8 小时 10 分钟
30 天内合并 PR
222

环境准备

从这里开始

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

registrystack/registry-stack 的其他 Issue

查看 registrystack/registry-stack 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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