Skip to content

Refuse a two-part version here too, not six minutes in - #567

Merged
andiwand merged 1 commit into
mainfrom
version-shape-matches-gradle
Aug 4, 2026
Merged

Refuse a two-part version here too, not six minutes in#567
andiwand merged 1 commit into
mainfrom
version-shape-matches-gradle

Conversation

@andiwand

@andiwand andiwand commented Aug 4, 2026

Copy link
Copy Markdown
Member

app/build.gradle stopped padding a missing third part in #565, so v4.7 is a build error now. .github/scripts/resolve-version.py exists to catch a bad version before the six minutes of gradle setup — and it still accepted one to three parts, so the one shape that newly cannot build was the one shape it waved through.

before                          after
v4.7   -> 'v4.7'                v4.7   -> REJECTED
v4     -> 'v4'                  v4     -> REJECTED
v4.8.0 -> 'v4.8.0'              v4.8.0 -> 'v4.8.0'

{0,2} becomes {2}, and the error message says which rule was broken.

Not hypothetical: a v4.7 tag reached origin on the 3rd, the day after 4.13.0 went out, and started a full release run of a week-old commit that had to be cancelled by hand. This would have ended it at the resolve step.

The pre-v4.8.0 tags are two-part and can therefore no longer be re-run through the release workflow. That is already true of the build itself, which is where it is enforced; this only moves the failure earlier.

🤖 Generated with Claude Code

app/build.gradle stopped padding a missing third part, so 'v4.7' is a
build error now. This script is the thing that is supposed to catch a
bad version before the gradle setup, and it still accepted one to three
parts - so the one shape that newly cannot build walked straight past
the check and died in the build instead.

The v4.7 tag that reached origin on the 3rd and started a release run is
what this would have stopped in seconds.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RsdTta67FZ4KeNfPPw5BVL
@andiwand
andiwand merged commit f8d39bc into main Aug 4, 2026
7 checks passed
@andiwand
andiwand deleted the version-shape-matches-gradle branch August 4, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant