You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The newest release (v0.20.3) includes a change from #2025 which bumps the Go directive from 1.18 to 1.23.0. As far as I know, the reason wasn't due to a feature required in Go 1.23, but rather "update everything to latest so that things build in CI." This change propagates to dependent libraries, so we are also required to use Go 1.23.
Would you consider walking back the 1.23 requirement if you don't need the features? Or supporting the last two versions of Go (1.22 too in this case).
There are other ways to use the latest version of Go in your CI, without requiring it for the project:
edit: I see one of your dependencies requires at least 1.22.7, so the request would be to use that instead of 1.23.0 (although pkg/authn/k8schain/go.mod and pkg/authn/kubernetes/go.mod would require 1.23.0 for theirs)
The text was updated successfully, but these errors were encountered:
Setting the go directive to 1.23.0 requires all consumers of the module
to be building with 1.23.0 or newer release of Go 1.23 and to update
their own go.mod accordingly — this seems unnecessarily restrictive for
a library module, particularly as the code itself doesn't currently use
any modern language constructs and builds fine even with older Go
versions.
Instead set the go directive to 1.22.0 and use the toolchain directive
to recommend the latest 1.23.x when building locally.
Note: this also includes a run of `hack/bump-deps.sh` to ensure all deps
are compatible with go1.22.0 as well
Fixesgoogle#2045
Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
dnwe
linked a pull request
Jan 24, 2025
that will
close
this issue
The newest release (v0.20.3) includes a change from #2025 which bumps the Go directive from
1.18
to1.23.0
. As far as I know, the reason wasn't due to a feature required in Go 1.23, but rather "update everything to latest so that things build in CI." This change propagates to dependent libraries, so we are also required to use Go 1.23.Would you consider walking back the 1.23 requirement if you don't need the features? Or supporting the last two versions of Go (1.22 too in this case).
There are other ways to use the latest version of Go in your CI, without requiring it for the project:
Instead of
There is also an
actions/setup-go
stable alias for the latest Go release:@imjasonh would this work for you?
edit: I see one of your dependencies requires at least
1.22.7
, so the request would be to use that instead of1.23.0
(althoughpkg/authn/k8schain/go.mod
andpkg/authn/kubernetes/go.mod
would require 1.23.0 for theirs)The text was updated successfully, but these errors were encountered: