-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] latest upstream version is wrongly detected #1923
Comments
Looks like it's a known issue, here are some issues in the /~https://github.com/hashicorp/go-version/ tracker that look like they're related. Unfortunately one of them is almost 5 years old. |
This issue is stale because it has been open for 90 days with no activity. |
This issue is stale, but only because there has been no fix so far, the issue itself still persists 😊 |
Thanks for the investigation, it looks like the we smash alpha and beta with the numbers, where it would be appropriate to have a So we should do I'm gonna close it as "this will be the solution". If that doesnt solve it we can reopen. |
Well this is fun: I think that we are kind of in a catch22, and I think that just getting to the next version will actually solve this better than attempting to rename tags. From reading semver, we are now using the right approach, but the library likely does not parse things after the Hopefully this should be solved by doing a RC in a couple of days. |
I think this should be resolved now with the release of 0.23.0, and I'll try to remember to do it properly from here on. |
Is this a support request?
Is there an existing issue for this?
Current Behavior
Expected Behavior
No log message when on the latest version
Steps To Reproduce
Environment
Runtime environment
Anything else?
With the relevant code inside of this project that is causing this behaviour being:
headscale/cmd/headscale/cli/root.go
Lines 72 to 88 in a9c568c
I have dug into the issue/code a little and found that the error seems to propagate from
github.com/hashicorp/go-version
or alteast the version that thetcnksm/go-latest
dependency is using. I have come to this conclusion with this little test program:Gives the following:
This shows a few things:
0.23.0-alpha10 < 0.23.0-alpha9
istrue
The text was updated successfully, but these errors were encountered: