Skip to content

github: fetch whole history when building containers - #2751

Merged
supakeen merged 1 commit into
osbuild:mainfrom
achilleas-k:build-containers-with-version
Oct 9, 2026
Merged

supakeen merged 1 commit into
osbuild:mainfrom
achilleas-k:build-containers-with-version

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

When checking out the repository to build the containers, fetch the whole git history. The Makefile uses git describe to get the version string from the latest tag and without the history it defaults to "1".

When checking out the repository to build the containers, fetch the
whole git history.  The Makefile uses `git describe` to get the version
string from the latest tag and without the history it defaults to "1".
@achilleas-k
achilleas-k requested a review from a team as a code owner October 8, 2026 15:57
@achilleas-k

achilleas-k commented Oct 8, 2026 •

Copy link
Copy Markdown
Member Author

VERSION := $(shell ( git describe --tags --abbrev=0 2>/dev/null || echo v1 ) | sed 's|v||')

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack!

@supakeen
supakeen added this pull request to the merge queue Oct 9, 2026
Merged via the queue into osbuild:main with commit f15d35e Oct 9, 2026
55 checks passed
@achilleas-k
achilleas-k deleted the build-containers-with-version branch November 30, 2026 13:09
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.

3 participants