-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 semver for releases #5639
Comments
As this would require some work, you need to add some arguments to "why"? Note that:
|
@bep - apologies, I should have added more context in the original report. In module-mode,
gives:
That is to say, it is not possible to add a module requirement for a release of In Go 1.12 this will also affect
gives:
Given that Hugo has already moved to using modules for its dependencies, this is the preferred way of installing via the So where people are looking to:
they will have to resort to doing:
or a specific commit, which seems less than idea. In response to your points/questions:
Yes I realise, but as I've pointed out above this affects a "global"
There is nothing special here. The only thing conveyed by being < 1.0.0 is that there are no guarantees about compatibility, per https://semver.org/#semantic-versioning-specification-semver:
I'll let you decide based on the examples above whether you consider this worthwhile or not. Just to point out that it would probably be sufficient to add additional tags as part of the release process. For example, in addition to tagging |
OK, I understand. I would suggest that you start out by creating an issue upstream (https://github.com/golang/go/issues) and apply a fix there -- which should be plenty more effective than forcing Go's definition of semver millions of dependencies on the internet.
That would break Hugo's automated release process. |
This has previously been discussed in golang/go#27528. The As @bcmills points out in that linked issue, the Go tool does resolve, for example,
I think this amounts to changing the
Can you explain how this would break things? It would require an additional step, yes, i.e. the addition of |
Or alternatively, please can you point me towards the scripts/etc that make up the release procedure? I'd be happy to help look at what's required to update the release procedure. |
A new release is triggered by a valid I still think Go Modules are broken in one way or the other, and will open an issue on Go's issue tracker about it, if you don't. Either:
Until then I will happily accept updates to the Hugo README/build instructions with workarounds to this issue:
|
Is it possible therefore to switch to
This is likely covered under golang/go#26420 or golang/go#28590, so please feel free to add any points to either of those. |
No, this will have to wait. The combined risk is too big. That and I still think this is a case that needs to be handled upstream. So this will have to wait. |
Ok, thanks for confirming.
Just to confirm, I won't be raising this issue so will leave it up to you whether you want to raise one. Because as I said above I consider the current position of the |
Just thinking about the risk aspect of this a bit more. Isn't the risk of this somewhat (entirely?) mitigated by the fact you've already demonstrated valid semver versions as working, e.g. |
I agree with @myitcv. The Go team has said they will only support valid |
When I say that there's risk/work involved in something, does it really matter exactly what it is? I have done some test in this area, and I don't see how that should not work fine with Hugo's version of
They should strongly consider being a little more lenient in that definition. If the Heartbleed fix had been released in OpenSSL
Perhaps. But that point is not now. |
In matters only in as much as I was offering to help investigate/fix.
https://github.com/bep/mod-c does not have any tags, hence you are getting
|
Yea, ok -- I thought I had pushed the tags. Now I get: GO111MODULE=on go1.12beta2 get -u -v github.com/bep/mod-c && mod-c
c v0.53.1 But that is only with ▶ go1.12beta2 get -u -v github.com/bep/mod-c && mod-c
github.com/bep/mod-c (download)
c v0.54 |
I don't have any evidence to conclude whether or not more people have switched to using modules/ |
Thanks @bep, looks good to me:
gives
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I note #3936.
But in light of modules requiring versions to be proper semver versions (
v0.53
is not a valid semver version,v0.53.0
is), would it be possible to have hugo releases follow semver?Thanks
The text was updated successfully, but these errors were encountered: