Skip to content

Commit 08a192a

Browse files
Merge pull request #2859 from hunterkepley/ocm-13071-3
OCM-13071 | fix: Bump Go version to 1.23
2 parents 87ffb7a + 80714fd commit 08a192a

File tree

11 files changed

+217
-276
lines changed

11 files changed

+217
-276
lines changed

.bingo/Variables.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ $(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod
3535
@echo "(re)installing $(GOBIN)/go-bindata-v3.1.2+incompatible"
3636
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.2+incompatible "github.com/go-bindata/go-bindata/go-bindata"
3737

38-
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.55.2
38+
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.60.0
3939
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
4040
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
41-
@echo "(re)installing $(GOBIN)/golangci-lint-v1.55.2"
42-
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.55.2 "github.com/golangci/golangci-lint/cmd/golangci-lint"
41+
@echo "(re)installing $(GOBIN)/golangci-lint-v1.60.0"
42+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.60.0 "github.com/golangci/golangci-lint/cmd/golangci-lint"
4343

4444
GORELEASER := $(GOBIN)/goreleaser-v1.25.1
4545
$(GORELEASER): $(BINGO_DIR)/goreleaser.mod

.bingo/golangci-lint.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
22

3-
go 1.21.3
3+
go 1.23.6
44

5-
require github.com/golangci/golangci-lint v1.55.2 // cmd/golangci-lint
5+
require github.com/golangci/golangci-lint v1.60.0 // cmd/golangci-lint

.bingo/golangci-lint.sum

Lines changed: 174 additions & 232 deletions
Large diffs are not rendered by default.

.bingo/variables.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GCI="${GOBIN}/gci-v0.13.4"
1414

1515
GO_BINDATA="${GOBIN}/go-bindata-v3.1.2+incompatible"
1616

17-
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.55.2"
17+
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.60.0"
1818

1919
GORELEASER="${GOBIN}/goreleaser-v1.25.1"
2020

.golangci.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,20 @@
1414
# limitations under the License.
1515
#
1616

17+
version: "2"
1718
run:
18-
skip-dirs:
19-
- assets
20-
- docs
21-
- templates
22-
- vendor
19+
go: "1.23"
2320
issues-exit-code: 1
2421
modules-download-mode: readonly
2522
issues:
23+
new: true
24+
exclude-dirs:
25+
- assets
26+
- docs
27+
- templates
28+
- vendor
2629
max-same-issues: 0
27-
exclude-rules:
28-
- path: '(.+)_test\.go'
29-
linters:
30-
- funlen
31-
- goconst
32-
33-
linters:
30+
formatters:
3431
disable-all: true
3532
enable:
3633
- gas
@@ -44,16 +41,19 @@ linters:
4441
- staticcheck
4542
- unconvert
4643
- unused
47-
linters-settings:
48-
staticcheck:
49-
go: "1.21"
50-
gci:
51-
sections:
52-
- standard
53-
- default
54-
- prefix(k8s)
55-
- prefix(sigs.k8s)
56-
- prefix(github.com)
57-
- prefix(gitlab)
58-
- prefix(github.com/openshift/rosa)
59-
custom-order: true
44+
settings:
45+
gci:
46+
sections:
47+
- standard
48+
- default
49+
- prefix(k8s)
50+
- prefix(sigs.k8s)
51+
- prefix(github.com)
52+
- prefix(gitlab)
53+
- prefix(github.com/openshift/rosa)
54+
custom-order: true
55+
exclusions:
56+
- path: '(.+)_test\.go'
57+
linters:
58+
- funlen
59+
- goconst

.golangciversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.53.3
1+
v1.60.0

cmd/create/machinepool/cmd_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var _ = Describe("Create machine pool", func() {
2929
It("should create machine pool", func() {
3030
serviceMock := machinepool.NewMockMachinePoolService(ctrl)
3131
serviceMock.EXPECT().CreateMachinePoolBasedOnClusterType(gomock.Any(), gomock.Any(),
32-
gomock.Any(), gomock.Any(), gomock.Any()).Return(nil).Times(1)
32+
gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(nil).Times(1)
3333

3434
mockClassicClusterReady := test.MockCluster(func(c *cmv1.ClusterBuilder) {
3535
c.AWS(cmv1.NewAWS().SubnetIDs("subnet-0b761d44d3d9a4663", "subnet-0f87f640e56934cbc"))
@@ -38,7 +38,8 @@ var _ = Describe("Create machine pool", func() {
3838
c.Hypershift(cmv1.NewHypershift().Enabled(false))
3939
})
4040
err := serviceMock.CreateMachinePoolBasedOnClusterType(rosa.NewRuntime(), NewCreateMachinePoolCommand(),
41-
"82339823", mockClassicClusterReady, NewCreateMachinepoolUserOptions())
41+
"82339823", mockClassicClusterReady, mockClassicClusterReady.Autoscaler(),
42+
NewCreateMachinepoolUserOptions())
4243
Expect(err).ToNot(HaveOccurred())
4344

4445
})

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/openshift/rosa
22

3-
go 1.21
4-
5-
toolchain go1.21.3
3+
go 1.23
64

75
require (
86
github.com/AlecAivazis/survey/v2 v2.2.15

images/Dockerfile.e2e

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The image is for Prow CI steps to manage the ROSA cluster lifecycle and testing
2-
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.21-openshift-4.16 as builder
2+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 as builder
33
WORKDIR /go/src/github.com/openshift/rosa
44
COPY . .
55
RUN go install ./cmd/rosa
@@ -13,7 +13,7 @@ RUN go install github.com/openshift-online/rosa-support@latest
1313

1414
FROM registry.ci.openshift.org/ci/cli-ocm:latest as ocmcli
1515

16-
FROM registry.ci.openshift.org/origin/4.16:cli
16+
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19
1717
COPY --from=builder /go/bin/rosa* /usr/bin
1818
COPY --from=builder /go/src/github.com/openshift/rosa/tests/ci/data /rosa/tests/ci/data
1919
COPY --from=builder /go/src/github.com/openshift/rosa/tests/prow_ci.sh /rosa/tests/

images/Dockerfile.release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The image is for using the latest released rosa CLI
22
FROM registry.ci.openshift.org/ci/cli-ocm:latest as ocmcli
33

4-
FROM registry.ci.openshift.org/origin/4.16:cli
4+
FROM registry.ci.openshift.org/origin/scos-4.19:cli
55
COPY --from=ocmcli /usr/bin/ocm /usr/bin/ocm
66
RUN yum -y install --setopt=skip_missing_names_on_install=False \
77
jq \

0 commit comments

Comments
 (0)