Skip to content

Add versioning to the controller and daemon - #281

Open
alicefr wants to merge 3 commits into
bootc-dev:mainfrom
alicefr:versioning
Open

alicefr wants to merge 3 commits into
bootc-dev:mainfrom
alicefr:versioning

Conversation

@alicefr

@alicefr alicefr commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Print correct version and commit

@alicefr
alicefr requested review from HarshwardhanPatil07 and Johan-Liebert1 and removed request for Johan-Liebert1 November 2, 2026 10:17
@alicefr

alicefr commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

@Mergifyio backport release-0.2

@mergify

mergify Bot commented Nov 2, 2026

Copy link
Copy Markdown

backport release-0.2

🟠 Waiting for conditions to match

Details
  • merged [📌 backport requirement]

Comment thread Makefile Outdated
ARTIFACTS ?= $(abspath _output/logs)
VERSION ?= $(shell git describe --tags --always --dirty)
VERSION ?= dev
GIT_COMMIT ?= $(shell git rev-parse --short HEAD)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

IMO this should test if the git worktree is dirty and not print the commit in this case.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Otherwise you'd print the commit on a build that may be completely unrelated

@HarshwardhanPatil07 HarshwardhanPatil07 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this one will need rebase after this one gets merged, updated the ci timeout

jbtrystram
jbtrystram previously approved these changes Nov 3, 2026
Johan-Liebert1
Johan-Liebert1 previously approved these changes Nov 3, 2026
Comment thread Makefile Resolved
Signed-off-by: Alice Frosi <afrosi@redhat.com>
Print the version and the git commit of the binary. E.g:
bin/daemon -version
0.2.2 (commit 4660cf252457701bf61320314b03eb00232f07e8)

Signed-off-by: Alice Frosi <afrosi@redhat.com>
Signed-off-by: Alice Frosi <afrosi@redhat.com>

This branch has not been deployed

No deployments
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.

4 participants