`verify-release-candidate.sh` version check doesn't catch `-dev` versions and is skipped on macOS
维护者通常 1 天内回复
@vinycalves 已经在做这个了。
开始于 2026年11月18日。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 领域
- build-system, release
调研方向
阅读现有 Cargo.toml 版本检查附近的 dev/release/verify-release-candidate.sh,然后在 GNU 和 BSD/macOS 上运行 issue 中的复现命令。更新检查,使其能够捕获所述的 -dev 和 -SNAPSHOT 后缀,并兼容两种 find 实现。当预发布版本在两个平台上都未通过检查,而发布版本通过时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
verify-release-candidate.sh rejects a release whose Cargo.toml contains SNAPSHOT:
The check misses a pre-release version in two ways.
First, #26845 changed main to -dev versions (57.0.0-dev today), but the check still greps for SNAPSHOT, which no Cargo.toml has used since #1350. An RC cut with a leftover -dev version passes on every platform.
Second, the check calls find without a starting path. GNU find defaults the path to ., but BSD find on macOS requires one and exits with find: illegal option -- i. That failure happens inside the if ( ... ) condition, so set -e doesn't stop the script and the condition is false. On macOS the check passes without reading any Cargo.toml.
To Reproduce
On macOS:
$ if ( /usr/bin/find -iname 'Cargo.toml' | xargs grep SNAPSHOT ); then echo found; else echo "check passed"; fi
/usr/bin/find: illegal option -- i
check passed
On any platform, from a main checkout:
$ if ( find . -iname 'Cargo.toml' | xargs grep SNAPSHOT ); then echo found; else echo "check passed"; fi
check passed
$ grep -m1 '^version' Cargo.toml
version = "57.0.0-dev"
I found this while verifying 56.0.0-rc2. A manual grep for -dev and -SNAPSHOT versions found none in that release.
Expected behavior
The check fails for any pre-release version suffix, on both GNU and BSD find. For example:
if ( find . -name 'Cargo.toml' -print0 | xargs -0 grep -nE '^version *= *"[^"]*-(dev|SNAPSHOT)' ); then
echo "Cargo.toml version should not have a -dev or -SNAPSHOT suffix for releases"
exit 1
fi
- 主要语言
- Rust
- 星标
- 9.6k
- 派生
- 2.6k
- 平均合并
- 3 天 5 小时
- 30 天内合并 PR
- 352
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/datafusion 的其他 Issue
-
`MoveTowardsLeafNodes` placement implies speculative evaluation, but the docs don't say so可能已有人在做 @Inf1mum 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
apache/datafusion#27487 · 3 条评论 ·
维护者通常 1 天内回复
-
`lpad` and `rpad` with a literal length above `i32::MAX` error on a NULL string or fill可能已有人在做 @TechWizard9999 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
apache/datafusion#27482 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Window constructors panic when the expression list is empty可能已有人在做 @abp002 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
apache/datafusion#27315 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
apache/datafusion#27094 · 1 条评论 ·
维护者通常 1 天内回复
-
Substrait consumer doesn't recognise `shift_left` / `shift_right` from functions_arithmetic.yaml可能已有人在做 @jonasHanhan 于 14 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
apache/datafusion#27059 ·
维护者通常 1 天内回复
查看 apache/datafusion 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
tinystream-dev/tinystream#132 ·
-
contract good first issue testing
难度 2/5 1-3 小时 新手友好度 72/100
Emmyt24/nova-launch#2436 ·
维护者通常 1 天内回复