You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In releases, the short version should not contain the Git revision.
Analysis
In the different build jobs of the release action, the Git repository is cloned using actions/checkout@v4 without any parameter. By default, this only does a shallow clone, which does not include tags. Hence, the build.rs is not able to check whether the build is made from a tag matching the version, and the revision is then included.
Solution
Set fetch-tags: true in the parameters for actions/checkout@v4 for the build-bin, build-deb and build-msi jobs.
The text was updated successfully, but these errors were encountered:
Problem description
If I run a binary downloaded from the release page and print its short version, I get the following:
Expected behaviour
In releases, the short version should not contain the Git revision.
Analysis
In the different build jobs of the release action, the Git repository is cloned using
actions/checkout@v4
without any parameter. By default, this only does a shallow clone, which does not include tags. Hence, thebuild.rs
is not able to check whether the build is made from a tag matching the version, and the revision is then included.Solution
Set
fetch-tags: true
in the parameters foractions/checkout@v4
for thebuild-bin
,build-deb
andbuild-msi
jobs.The text was updated successfully, but these errors were encountered: