-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat: Automatically calculate the current version number through Git… #544
feat: Automatically calculate the current version number through Git… #544
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
67924ec
to
a7968c4
Compare
a7968c4
to
793d00c
Compare
@rajeshkio Welcome to join our community. Here is our slack |
@rajeshkio Nice! It seems to be able to automatically calculate the current version number, but, the make command still needs to be manually executed before each release. So I am thinking about how to integrate it in the release pipeline. Maybe we need to add a hook to the .goreleaser.yml. Do you have any good ideas? |
sure. Let me see. I thought it will do the make call internally. |
@rajeshkio You can refer to this configuration: https://github.com/elliotxx/go-web-template/blob/master/.goreleaser.yml#L7 But this can only ensure that the version in the Image is correct and cannot guarantee that |
make sense to hook it just after go mod tidy? before: |
This is interesting. Something I have never experienced. Can I test it locally? |
Of course, this is some ways to test this case locally:
You can compare the different version numbers they generate. |
Yes, this hook ensures that the |
Maybe we don't need to consider |
okay. Your decision. I am not well aware of this. If it can be ignored for now, we can create another issue for this, assigned to me, and I can work on it separately. |
added. |
@elliotxx Let me know if anything is pending from my side |
@rajeshkio You have done a good job, I just have no time to do full test. But I thought about it, this it doesn't matter. We are the trunk-based development mode, there will be a full test before the official version is released. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@rajeshkio Welcome to become a project contributor! #552 Looking forward to more communication between us 🍻 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Automates versioning and updates pkg/version/VERSION file
Which issue(s) this PR fixes:
Fixes #537