-
Notifications
You must be signed in to change notification settings - Fork 104
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
[BUG] Tag version with "v" prefix to make it work with go.mod #73
Comments
I'm a little mixed on this. All parts of OpenSearch uses semantic versioning that is I've only casually used golang, so can you help me understand the ramifications of using |
Sure, @stockholmux! From Go Modules Reference: Version:
If I want to use this released version, I'd need to use Pseudo-versions. Reading the docs, I see:
This means I'd have to execute the following command to update my go.mod with version 1.0.0:
If we look what ends up in the go.mod file, it doesn't look good:
instead of containing the expected
Now, if I want to know what version I'm using, I'd have to browse this repository and find 8b5df4936baa, which will show that it's tagged as I also wonder if it affects dependabot alerts in any way, but I don't think so. |
If you really want to keep using tags without the |
OK - makes sense. So, there is no real friction at the time of adding the module but when trying to determine the module version later it's obscured. It's a bit annoying that semantic versioning explicitly doesn't want the I think the bigger issue is any project wide tooling that is either in place or planned that will use things like a semver regexp. Let me dig. |
I'd say there's some friction too for a set of users, though: whoever edits |
Oh, also I see that if you go to Go's package search (https://pkg.go.dev/github.com/opensearch-project/opensearch-go) it shows no tagged/stable version. |
and latest version: Version: v0.0.0-...-fb1709a :| |
Related, opensearch-project/.github#35 |
I think it's perfectly OK if opensearch-go tags with |
Since most of go tools expects 'v' as prefix, i am favoring towards having all release tags to have 'v' as prefix. Instead of editing the existing tag, i am thinking about release new tag v1.0.0 and in future will have 'v' for all release tags. @dblock @henvic @stockholmux any objection? |
Sounds good to me. |
This would be the best solution for golang users |
Thanks!
|
Hi, go mod requires tags to start with a "v" prefix. Otherwise, it's invalid.
I've noticed this when trying to update a go.mod to use the latest release.
Could you please retag it to be
v1.0.0
?Context:
golang/go#30146 (comment)
golang/go#32945
The text was updated successfully, but these errors were encountered: