Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetch history for correct versioning when deploying #44

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

MaxOstrowski
Copy link
Member

I encountered an issue with this template, as the automatic versioning is very nice, but does not work well with github action checkout. For the automatic versioning to work, we rely on the checked out git, as discussed somewhere before (can't find the issue/discussion anymore, might have been the old git).

As the 'setuptools-scm' relies on git metadata and as described here:
actions/checkout#249
this PR solves the issue and produces correct version numbers on deployment by checking out the complete history (including tag names etc...). The performance drawback will hopefully be negligible.

@rkaminsk
Copy link
Member

Nice catch. Thanks!

@rkaminsk rkaminsk merged commit 5e19aad into potassco:master Mar 14, 2024
3 checks passed
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.

2 participants