Skip to content

Commit e334034

Browse files
Backport of Upgrade go version to 1.23 into release/1.21.x (#22206)
* backport of commit bfc7c30 * backport of commit 7efe353 * backport of commit e866490 * backport of commit 8ed8c43 * backport of commit a400bad --------- Co-authored-by: Abhishek <[email protected]>
1 parent 3a30cf5 commit e334034

File tree

8 files changed

+19
-6
lines changed

8 files changed

+19
-6
lines changed

.changelog/22204.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:security
2+
Upgrade Go to 1.23.6.
3+
```

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.22.12
1+
1.23.6

.golangci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ issues:
2525
- linters: [staticcheck]
2626
text: "SA9004:"
2727

28+
- linters: [staticcheck]
29+
text: "SA1006:"
30+
2831
- linters: [staticcheck]
2932
text: 'SA1019: "io/ioutil" has been deprecated since Go 1.16'
3033

@@ -37,6 +40,9 @@ issues:
3740
- linters: [unparam]
3841
text: "always receives"
3942

43+
- linters: [ unparam ]
44+
text: 'result \d+ \(bool\) is always false'
45+
4046
# Often functions will implement an interface that returns an error without
4147
# needing to return an error. Sometimes the error return value is unnecessary
4248
# but a linter can not tell the difference.
@@ -64,13 +70,13 @@ issues:
6470

6571
linters-settings:
6672
govet:
67-
check-shadowing: true
6873
enable-all: true
6974
disable:
7075
- fieldalignment
7176
- nilness
7277
- shadow
7378
- unusedwrite
79+
- printf
7480
gofmt:
7581
simplify: true
7682
forbidigo:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GO_MODULES := $(shell find . -name go.mod -exec dirname {} \; | grep -v "proto-g
1010
# These version variables can either be a valid string for "go install <module>@<version>"
1111
# or the string @DEV to imply use what is currently installed locally.
1212
###
13-
GOLANGCI_LINT_VERSION='v1.56.1'
13+
GOLANGCI_LINT_VERSION='v1.61.0'
1414
MOCKERY_VERSION='v2.41.0'
1515
BUF_VERSION='v1.26.0'
1616

agent/config/config.deepcopy.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hashicorp/consul
22

3-
go 1.22.12
3+
go 1.23.6
44

55
replace (
66
github.com/hashicorp/consul/api => ./api

test-integ/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hashicorp/consul/test-integ
22

3-
go 1.22.12
3+
go 1.23.6
44

55
require (
66
github.com/google/go-cmp v0.6.0

test/integration/consul-container/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hashicorp/consul/test/integration/consul-container
22

3-
go 1.22.12
3+
go 1.23.6
44

55
require (
66
fortio.org/fortio v1.54.0

0 commit comments

Comments
 (0)