Skip to content

Comments

[release-2.11] MTV-4517 | standardise version embedding using git-describe#4828

Open
github-actions[bot] wants to merge 1 commit intorelease-2.11from
bp-release-2.11-33abad4
Open

[release-2.11] MTV-4517 | standardise version embedding using git-describe#4828
github-actions[bot] wants to merge 1 commit intorelease-2.11from
bp-release-2.11-33abad4

Conversation

@github-actions
Copy link

Backport: #4595

Resoles: MTV-4517

By using git describe the version of the binary becomes dependant on git
as source-of-truth. When combined with tags this is how the version
string looks like when the HEAD has the tag 'v2.10.4'

I0208 19:25:09.323603 3637005 vsphere-xcopy-volume-populator.go:313] binary=vsphere-xcopy-volume-populator version=v2.10.4 vib_version=0.3.0 vmkfstools_wrapper_version=0.3.0

If the HEAD is 2 commits above the tag v2.10.4 then version will be:
v2.10.4-2-g{GIT_COMMIT_SHA}

Signed-off-by: Roy Golan rgolan@redhat.com

Resolves: MTV-4517

By using git describe the version of the binary becomes dependant on git
as source-of-truth. When combined with tags this is how the version
string looks like when the HEAD has the tag 'v2.10.4'

    I0208 19:25:09.323603 3637005 vsphere-xcopy-volume-populator.go:313] binary=vsphere-xcopy-volume-populator version=v2.10.4 vib_version=0.3.0 vmkfstools_wrapper_version=0.3.0

If the HEAD is 2 commits above the tag v2.10.4 then version will be:
v2.10.4-2-g{GIT_COMMIT_SHA}

Signed-off-by: Roy Golan <rgolan@redhat.com>
@rgolangh rgolangh force-pushed the bp-release-2.11-33abad4 branch from f3d7025 to 8dd7254 Compare February 15, 2026 09:46
@rgolangh
Copy link
Collaborator

@mnecas @yaacov PTAL

@sonarqubecloud
Copy link

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