Skip to content

fix: ensure workflows checkout exact tag for clean version detection#110

Open
sameeul wants to merge 1 commit intoPolusAI:masterfrom
sameeul:fix/workflow-tag-checkout
Open

fix: ensure workflows checkout exact tag for clean version detection#110
sameeul wants to merge 1 commit intoPolusAI:masterfrom
sameeul:fix/workflow-tag-checkout

Conversation

@sameeul
Copy link
Member

@sameeul sameeul commented Mar 19, 2026

  • Add ref: ${{ github.ref }} to checkout action to ensure we're on the exact tag
  • Add git state verification step to confirm we're on exact tag
  • Add setuptools-scm verification to display detected version in logs

This fixes the issue where setuptools-scm was detecting 2.2.2.post1.dev0 instead of clean 2.2.2 because the checkout wasn't at the exact tag commit.

With this fix, wheels will be built with clean version numbers (e.g., 2.2.2) instead of post-release dev versions (e.g., 2.2.2.post1.dev0).

- Add ref: ${{ github.ref }} to checkout action to ensure we're on the exact tag
- Add git state verification step to confirm we're on exact tag
- Add setuptools-scm verification to display detected version in logs

This fixes the issue where setuptools-scm was detecting 2.2.2.post1.dev0
instead of clean 2.2.2 because the checkout wasn't at the exact tag commit.

With this fix, wheels will be built with clean version numbers (e.g., 2.2.2)
instead of post-release dev versions (e.g., 2.2.2.post1.dev0).
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