Skip to content

Add fetch-depth to 0 for all jobs that builds an artifact to be released#443

Merged
spe-ciellt merged 1 commit intodevelopfrom
build/increase-fetch-depth-to-get-all-tags
Mar 17, 2026
Merged

Add fetch-depth to 0 for all jobs that builds an artifact to be released#443
spe-ciellt merged 1 commit intodevelopfrom
build/increase-fetch-depth-to-get-all-tags

Conversation

@spe-ciellt
Copy link
Copy Markdown
Contributor

@spe-ciellt spe-ciellt commented Mar 17, 2026

When building, the git version tag is used to create a release number. A too shallow git clone will not include the last tags and will create slightly weird version numbers. It said 4.0.0 which CMakeLists.txt picks up from the version set when initializing CMake in project().

Switched to 0 for all, which is a complete clone. Most had none from the beginning, which defaults to 1. I tried 50 first, but that was probably too shallow since develop is branched of main at some point.

@spe-ciellt spe-ciellt self-assigned this Mar 17, 2026
@spe-ciellt spe-ciellt added the buildsystem Updates to the buildsystem (CMake/CTest/CPack) label Mar 17, 2026
@spe-ciellt spe-ciellt force-pushed the build/increase-fetch-depth-to-get-all-tags branch from 31b326e to 9a45e6a Compare March 17, 2026 19:54
@spe-ciellt spe-ciellt changed the title Add fetch-depth to 50 for all jobs that builds an artifact to be released Add fetch-depth to 0 for all jobs that builds an artifact to be released Mar 17, 2026
@spe-ciellt spe-ciellt merged commit 2a73820 into develop Mar 17, 2026
8 checks passed
@spe-ciellt spe-ciellt deleted the build/increase-fetch-depth-to-get-all-tags branch March 17, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

buildsystem Updates to the buildsystem (CMake/CTest/CPack)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant