chore: Bump to Golang 1.23 [RHIDP-5963] - #1222
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
96b6ec0 to
5827041
Compare
5827041 to
d59a4e9
Compare
Go 1.23 support was added in v1.60.1 NOTE: Bumping to the latest v2 required more changes in the code itself, due to more linters (I guess). And since this is outside the scope of this (Go 1.23 update), we can do this in a separate issue/PR
d59a4e9 to
4ef5b48
Compare
| CONTROLLER_TOOLS_VERSION ?= v0.14.0 | ||
| ENVTEST_VERSION ?= release-0.17 | ||
| GOLANGCI_LINT_VERSION ?= v1.59.1 | ||
| GOLANGCI_LINT_VERSION ?= v1.64.8 |
There was a problem hiding this comment.
As seen in https://github.com/redhat-developer/rhdh-operator/actions/runs/15419859301/job/43391791587?pr=1222, v1.59.1 could not run using Go 1.23. Hence this update. However, this is the latest v1 version of golangci-lint that could pass with Go 1.23.
This is not the latest v2 version at this time, because v2 reports a lot of errors, which might require further investigation (outside of the scope of this PR). I'll create a subsequent issue/PR to upgrade golang-ci-lint to v2 and address the errors returned.
Co-authored-by: Nick Boldt <nboldt@redhat.com>
* Bump Go to 1.23 and ubi-minimal image to 9.6 * Bump golangci-lint to v1.64.8 Go 1.23 support was added in v1.60.1 NOTE: Bumping to the latest v2 required more changes in the code itself, due to more linters (I guess). And since this is outside the scope of this (Go 1.23 update), we can do this in a separate issue/PR * Apply suggestions from code review Co-authored-by: Nick Boldt <nboldt@redhat.com> * fixup! Bump Go to 1.23 and ubi-minimal image to 9.6 * Cleanup imports * Fix import statements in zz_generated_deepcopy.go files --------- Co-authored-by: Nick Boldt <nboldt@redhat.com>
Description
Bumps Go to 1.23, now that registry.redhat.io/ubi9/go-toolset:1.23 is available. It also bumps the base ubi-minimal image to 9.6 (latest available at this time).
Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
All tests (unit, integration and E2E) are passing, and I also performed a manual sanity check of
quay.io/rhdh-community/operator-catalog:0.7.0-pr-1222-feda404.