-
Notifications
You must be signed in to change notification settings - Fork 65
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
Incorrect api version is generated from "go get github.com/devfile/api/v2@main" command #599
Comments
This issue affects pull in latest devfile/api to devfile/library. since library has dependency to registry-library, and registry-library currently uses devfile v2.2.0. when pull in
I have created a pre-release tag:v2.2.1-alpha, and the versioning functions well now.
we should continue this practice in future as well. |
@yangcao77 thanks for confirming the use of pre-release tags. I'll get this added to our RELEASE notes and add a comment to our scripts |
/kind bug
Which area this bug is related to?
/area api
Bug Summary
Describe the bug:
When consumers pick up the latest api package that's under development, they typically run a
go get
command to update their go.mod file but the version that gets generated isv2.0.0-<timestamp of last commit>
. This looks out of date because it implies changes to the v2.0.0 spec when v2.1.0 is our latest. This can cause confusion since the underlying code is actually the latest.Expected behavior
We should ensure the version reflects the latest version that's under development
Additional context
v2.0.0 is being generated because the main branch does not have any tags (these are associated with our release branches), so
go get
generates a pseudo version that's based on the version specified in the module path (v2).Any workaround?
Suggestion on how to fix the bug
Based on how pseudo-versions work, we may be able to correct this by adding pre-release tags to the api repo: https://golang.org/ref/mod#pseudo-versions
The text was updated successfully, but these errors were encountered: