-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Using main
branch commit in go.mod is a downgrade (0.15.1)
#2654
Comments
Is it really a downgrade and you can't use funcs added in newer WP versions? |
Yes, I just tested myself, you can try with this code: package main
import (
"github.com/woodpecker-ci/woodpecker/woodpecker-go/woodpecker"
)
func main() {
cl := woodpecker.New("https://ci.woodpecker-ci.org/")
cl.RepoListOpts(true)
} (it returns an error without token, but that's not important)
|
It is using the correct code. https://go.dev/ref/mod#pseudo-versions It uses the latest tag in the main branch.
Then it increments the patch version, throws away So Go expects a different git workflow. |
It would be nice with a git workflow where the latest release branch is merged into It would also make it easier to compare two branches using Github's UI. Currently, it shows |
The easiest solution would just be to tag a commit in |
We will probably follow this approach starting from 2.0. |
How about my suggestion of tagging the current head of main as |
I'm against this because there's no release like this planned. We plan to release v2.0 in the next days/week anyways. |
The release of v2.0 did not fix this issue. |
And issue #2913 |
https://go.dev/doc/modules/release-workflow#breaking Fixes #2913 fixes #2654 ``` runephilosof@fedora:~/code/platform-woodpecker/woodpecker-repo-configurator (master)$ go get go.woodpecker-ci.org/[email protected] go: go.woodpecker-ci.org/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("go.woodpecker-ci.org/woodpecker/v2") ``` --------- Co-authored-by: qwerty287 <[email protected]>
Component
other
Describe the bug
Upgrading from v1.0.2 to the latest commit on the
main
branch is a downgrade, because its version is 0.15.1.System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: