-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
CI fails for Go 1.15 #1864
Comments
I see two options here:
I'm ok with either option. We also need to update our deprecation document as we have agreed we will not do a major Cobra release when removing support for Go versions. I suggest our support policy for Go should be something like: "We guarantee to support the latest 2 versions of Go, just like the Go project does. To give more flexibility to Cobra consumers, we also won't remove support for older Go versions until a valid reason arises; valid reasons are at the discretion of the maintainers and include but are not limited to, hindering the evolution of the project, limiting the use of CI tools, causing a noticeable added burden of maintenance." |
Thanks for opening this discussion Marc - I have a few thoughts: I think we should remove usage of If that is unacceptable, I think we should visit deprecating Go 1.15 from cobra. It's been EOL for awhile now so I'm not concerned with breaking consumers of cobra but it does deserve some deep consideration since cobra's posture towards old versions of Go has been "it should just work". |
You had me at “barrier to entry “ 😜 Also, I personally prefer keeping go versions as long as possible, even if they are EOL. We don't know the reality of the many projects using Cobra so let's help as much as we can. So +1 to remove our use of richgo. Thanks for thinking outside the box @jpmcb |
So @umarcor had the interesting idea of removing richgo for To make the CI logs easy to read, CI was made to point to I like the approach but would like @jpmcb's opinion. And thanks @umarcor for your continued efforts. |
|
Whoops; missed this discussion and I already had a branch created / pushed to update the minimum version to go1.17 (#1871). Generally, recommendation is indeed to support last 2 versions, although some project may be "slightly" behind, so where possible 3 versions is "nice" to give projects some time-windows to update (but consider it a "best effort"). I noticed the module that's failing specifies go1.17 as minimum version, which matches "3 versions";
|
I went ahead and merged #1866 which stops running CI on go 1.15 (since CI uses richgo which no longer supports go 1.15) but allows projects to continue using Go 1.15. |
As was seen in #1863, the go 1.15 CI is failing with
Looks like
richgo
0.3.11, which was recently released (Nov 15, 2022), requires go 1.16.The text was updated successfully, but these errors were encountered: