Skip to content

Conversation

@Mab879
Copy link
Member

@Mab879 Mab879 commented Dec 16, 2025

Closes #22

@Mab879 Mab879 force-pushed the fix_version branch 5 times, most recently from 37748bc to cc66004 Compare December 16, 2025 20:33
@Mab879
Copy link
Member Author

Mab879 commented Dec 16, 2025

To test you can install the copr https://copr.fedorainfracloud.org/coprs/packit/ComplianceAsCode-cvetool-49/ and then run cvetool -v

Makefile Outdated
.PHONY: build
build: cvetool

+VERSION ?= $(shell git describe --tags --match 'v*' --always --dirty 2>/dev/null || echo dev)

Choose a reason for hiding this comment

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

Suggested change
+VERSION ?= $(shell git describe --tags --match 'v*' --always --dirty 2>/dev/null || echo dev)
VERSION ?= $(shell git describe --tags --match 'v*' --always --dirty 2>/dev/null || echo dev)

Copy link

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

Please remove the + sign, with it the version does not get propagated.

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.

Fix version handling in cmd/cvetool/version.go

2 participants