upgrade version of Go in GitHub checks#637
Conversation
I want to use errors.Join in the following PR: - License checker feature google#501 It is a method added in go 1.20.
Codecov Report
@@ Coverage Diff @@
## main #637 +/- ##
=======================================
Coverage 78.82% 78.82%
=======================================
Files 78 78
Lines 5511 5511
=======================================
Hits 4344 4344
Misses 990 990
Partials 177 177 |
|
Can you also change the go version in the go.mod? |
|
Isn't this a breaking change though for the library? |
|
I was thinking about that, but it looks like go 1.19 is out of support anyway? https://endoflife.date/go I'm actually not sure how libraries are suppose to bump versions if we have to do a major version change every go release. |
|
I thought it that libraries don't need to worry EOL because that only matters for the version of Go that is doing the compiling - i.e. osv-scanner (the cli) should be being built with an in-life version of Go, but osv-scanner (the library) can remain compatible with EOL version of Go |
|
I opt for upgrading the version of Go. And that this shouldn't require a major version bump.
However, we might like to make a policy that osv-scanner will user versions of Go at least two release behind or something. |
another-rex
left a comment
There was a problem hiding this comment.
LGTM, we'll increase them minor version of osv-scanner when this releases.
I want to use errors.Join in the following PR:
It is a method added in go 1.20.