Skip to content

Commit bb407dd

Browse files
authored
Go1.23, bump golangci-lint (#678)
1 parent b6b7d14 commit bb407dd

File tree

11 files changed

+15
-16
lines changed

11 files changed

+15
-16
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
go: ['1.22']
13+
go: ['1.23']
1414

1515
steps:
1616
- name: install make
@@ -26,7 +26,7 @@ jobs:
2626
- name: check clean vendors
2727
run: go mod vendor
2828
- name: Report coverage
29-
if: ${{ matrix.go == '1.22' }}
29+
if: ${{ matrix.go == '1.23' }}
3030
uses: codecov/codecov-action@v4
3131
with:
3232
files: ./cover.out

.github/workflows/push_image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
go: ['1.22']
18+
go: ['1.23']
1919
steps:
2020
- name: install make
2121
run: sudo apt-get install make
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
strategy:
5151
matrix:
52-
go: ['1.22']
52+
go: ['1.23']
5353
steps:
5454
- name: install make
5555
run: sudo apt-get install make

.github/workflows/push_image_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
go: ['1.22']
19+
go: ['1.23']
2020
steps:
2121
- name: install make
2222
run: sudo apt-get install make

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
go: ['1.22']
17+
go: ['1.23']
1818
steps:
1919
- name: checkout
2020
uses: actions/checkout@v3

.golangci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ linters:
55
- cyclop
66
- errname
77
- exhaustive
8-
- exportloopref
8+
- copyloopvar
99
- gocritic
1010
- gofmt
1111
- gosimple
@@ -16,16 +16,15 @@ linters:
1616
- stylecheck
1717
- typecheck
1818
- unused
19+
run:
20+
go: "1.22"
1921
linters-settings:
20-
stylecheck:
21-
go: "1.22"
2222
gocritic:
2323
enabled-checks:
2424
- hugeParam
2525
- rangeExprCopy
2626
- rangeValCopy
2727
- indexAlloc
28-
- deprecatedComment
2928
settings:
3029
ifElseChain:
3130
minThreshold: 3

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ WORKDIR /opt/app-root/web
1919
RUN npm run format-all
2020
RUN npm run build$BUILDSCRIPT
2121

22-
FROM docker.io/library/golang:1.22 as go-builder
22+
FROM docker.io/library/golang:1.23 as go-builder
2323

2424
ARG TARGETARCH=amd64
2525
ARG LDFLAGS

Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/library/golang:1.22
1+
FROM docker.io/library/golang:1.23
22

33
RUN apt-get update && apt-get install -y \
44
nodejs \

Dockerfile.cypress

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ WORKDIR /opt/app-root/web
2020
RUN npm run format-all
2121
RUN npm run build$BUILDSCRIPT
2222

23-
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.22 as go-builder
23+
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.23 as go-builder
2424

2525
ARG LDFLAGS
2626
WORKDIR /opt/app-root

Dockerfile.downstream

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ WORKDIR /opt/app-root/web
1919
RUN npm run format-all
2020
RUN npm run build$BUILDSCRIPT
2121

22-
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22.5-202407301806.g4c8b32d.el9 as go-builder
22+
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23 as go-builder
2323

2424
ARG BUILDVERSION
2525
ARG DATE

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ ifneq ($(CLEAN_BUILD),)
4141
LDFLAGS ?= -X 'main.buildVersion=${VERSION}-${BUILD_SHA}' -X 'main.buildDate=${BUILD_DATE}'
4242
endif
4343

44-
GOLANGCI_LINT_VERSION = v1.53.3
44+
GOLANGCI_LINT_VERSION = v1.61.0
4545
NPM_INSTALL ?= install
4646
CMDLINE_ARGS ?= --loglevel trace --config config/config.yaml
4747

0 commit comments

Comments
 (0)