-
Notifications
You must be signed in to change notification settings - Fork 888
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
Use Go/Hugo-friendly git tags #954
Comments
Also deleting/overriding tags released to public is not considered best practice for git. Tagging pre release versions as v0.2.0-alpha1, v0.2.0-alpha2 and so on would be beneficial. |
Thanks for the feedback @WhiteEyeDoll. /cc @deining - re. the Hugo module version ID requirements (not my area of expertise so I'll let Andreas comment). Btw, we'll eventually follow semver, but we aren't at the moment. Thanks for your patience as we make it through this initial turbulence to our first official release. |
As you probably know, semver doesn't mandate a |
Could it be possible to push a working tag to mitigate this? I'm developing multiple new pipelines that use the hugo mod functionality and could provide feedback regarding this. |
Hugo modules are go modules and those require the "v" prefix. https://go.dev/ref/mod#versions
https://go.dev/blog/publishing-go-modules
https://gohugo.io/hugo-modules/
|
Done! Apologies for the breakage. |
FYI: https://semver.org/#is-v123-a-semantic-version I'll still want to discuss this with @deining, and will get back to you after. |
Thanks for the fast response. This fixed the issue.
|
Yes the prefix "v" is a convention and has been a discussion point in the past regarding go modules. |
Again, @deining is the expert here, but from my investigations, I think that we've been using Pseudo-versions, and for these:
|
No, still learning, too 😄 #871 was merged with revison 1e5f31c., and we assigned two tags to this revision:
We partially reverted this meanwhile, but in hindsight, I doubt whether this was a good desicion since, as @WhiteEyeDoll pointed out, deleting/overriding tags released to public is not considered a good practice. How to cope with this situation now? I would propose:
What do you think? |
Dunno if fixing the old stuff is required but otherwise the steps are sound. 😄 I would only question using the -pre suffix over -alpha/-beta/-rc as those sort and state the status better. |
Agreed.
Yes. Can you make this change @deining?
We just stated that we won't remove tags moving forward, so we can let those be.
I'd skip this part so as to avoid creating yet more tags, especially since first official release is "imminent".
As it seems that v prefixes are the way to go for Go/Hugo modules, then tags will have a v prefix moving forward. |
With release 0.2.0 out (which uses the tag |
Well the v0.2.0 worked perfectly till it was nuked again. 😅 |
I had the same issue because I had downloaded locally on my computer when the old tags were active, but by the time I had it running in a pipeline there were new tags with new checksums, so the pipeline was failing. For anyone else struggling with this, you can get the new checksums locally by running As @WhiteEyeDoll said, please don't modify tags once they are public - it causes a lot of headaches. Seeing as we are still on v0, bugs are expected, so it is much better to just release a new bugfix version, ie: v0.2.1. |
Thanks for the feedback, we're expecting to offer a smoother experience moving forward. |
Hugo mod requires that tags follow the semver pattern
vMAJOR.MINOR.PATCH
.The latest tag 0.2.0-pre with the deletion of v0.2.0-pre breaks module functionality. Tag 0.2.0-pre is not seen as a proper version for a go module as the "v" prefix is required.
https://go.dev/blog/publishing-go-modules
The text was updated successfully, but these errors were encountered: