Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed versioning logic through go generate & go embed #16

Merged
merged 1 commit into from
May 24, 2022

Conversation

fedeztk
Copy link
Owner

@fedeztk fedeztk commented May 24, 2022

Now all version follow the git revision logic:

printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

A gh action update a file (.version) with the content of the above printf. It is then embedded in the go binary.
This change aims to reach consistency and ease of use in got's versioning by unifying the standard way of git packaging version in arch linux together with go install, make, docker etc.

@fedeztk fedeztk merged commit 15cc0a0 into master May 24, 2022
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.

None yet

1 participant