`verify-release-candidate.sh` version check doesn't catch `-dev` versions and is skipped on macOS

Open Beginner friendly
#27,563 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@vinycalves is already working on this.

Since Nov 18, 2026.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust, shell

Research direction

Read dev/release/verify-release-candidate.sh around the existing Cargo.toml version check, then run the reproduction commands from the issue on GNU and BSD/macOS. Update the check to catch the stated -dev and -SNAPSHOT suffixes and work with both find implementations. Done when a pre-release version fails the check on both platforms and a release version passes.

Written by the indexing model from the issue text.

Description

Describe the bug

verify-release-candidate.sh rejects a release whose Cargo.toml contains SNAPSHOT:

https://github.com/apache/datafusion/blob/13efc9c27d59b7fbc6503025042f14064c5fa0f7/dev/release/verify-release-candidate.sh#L153-L156

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
Dominant language
Rust
Stars
9.6k
Forks
2.6k
Avg merge
3d 5h
Merged PRs (30d)
352

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/datafusion

All issues in apache/datafusion

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.