Skip to content

Commit 4146c0c

Browse files
Upgrade Go version to 1.20 (hashicorp#2898)
* chore: Upgrade Go version * fix: Upgrade golangci-lint to support 1.20 * fix: Don't use t.SetEnv in parallel tests This is a panic in Go 1.20 and it sounds like a recipe for distaster in general.
1 parent 9dcf605 commit 4146c0c

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

.go-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.19.4
1+
1.20

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ golangci-lint:
3333
$(eval GOLINT_INSTALLED := $(shell which golangci-lint))
3434

3535
if [ "$(GOLINT_INSTALLED)" = "" ]; then \
36-
sh scripts/install-golangci-lint.sh -b $(GO_PATH)/bin v1.50.1; \
36+
sh scripts/install-golangci-lint.sh -b $(GO_PATH)/bin v1.51.0; \
3737
fi;
3838

3939
.PHONY: cleangen

internal/cmd/base/server_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ func TestServer_AddEventerToContext(t *testing.T) {
426426
}
427427

428428
func TestSetupWorkerPublicAddress(t *testing.T) {
429-
t.Parallel()
430429
tests := []struct {
431430
name string
432431
inputConfig *config.Config

internal/cmd/config/config_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,6 @@ func TestDatabaseSkipSharedLockAcquisition(t *testing.T) {
18881888
}
18891889

18901890
func TestSetupControllerPublicClusterAddress(t *testing.T) {
1891-
t.Parallel()
18921891
tests := []struct {
18931892
name string
18941893
inputConfig *Config

0 commit comments

Comments
 (0)