Skip to content

chore: fetch tags so PyPI publish resolves the real version#4668

Merged
dbrattli merged 1 commit into
mainfrom
fix/pypi-publish-version
Jun 16, 2026
Merged

chore: fetch tags so PyPI publish resolves the real version#4668
dbrattli merged 1 commit into
mainfrom
fix/pypi-publish-version

Conversation

@dbrattli

Copy link
Copy Markdown
Collaborator

Problem

A manually triggered PyPI publish shipped version 0.0.0 to PyPI (https://pypi.org/project/fable-library/0.0.0/).

Root cause

The build-fable-library job derives the package version with:

VERSION=$(dunamai from git --format "..." --pattern "..." --latest-tag)

actions/checkout defaults to a shallow clone (fetch-depth: 1) that does not fetch tags. With no tags available, dunamai --latest-tag falls back to its default base version 0.0.0, which then gets built into the wheels and published.

Fix

Set fetch-depth: 0 on the checkout in the build-fable-library job so the full tag history is available and dunamai resolves the actual release version. Only this job runs dunamai — the wheel-building jobs just download the produced artifact — so no other checkout needs changing.

🤖 Generated with Claude Code

The build-fable-library job runs `dunamai ... --latest-tag` to derive the
package version, but actions/checkout defaults to a shallow clone with no
tags. dunamai then found no tag and fell back to its default 0.0.0, which
got published to PyPI.

Use fetch-depth: 0 so the full tag history is available.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dbrattli dbrattli changed the title fix(ci): fetch tags so PyPI publish resolves the real version chore(ci): fetch tags so PyPI publish resolves the real version Jun 16, 2026
@dbrattli dbrattli changed the title chore(ci): fetch tags so PyPI publish resolves the real version chore: fetch tags so PyPI publish resolves the real version Jun 16, 2026
@dbrattli dbrattli merged commit 08aa214 into main Jun 16, 2026
45 of 48 checks passed
@dbrattli dbrattli deleted the fix/pypi-publish-version branch June 16, 2026 13:45
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