Upgrade Go version to 1.20 (#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.
This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2023-02-10 11:16:03 -05:00
1 parent 9dcf605251
commit 4146c0c55d
4 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -1 +1 @@
1.19.4
1.20
+1 -1
View File
@@ -33,7 +33,7 @@ golangci-lint:
$(eval GOLINT_INSTALLED := $(shell which golangci-lint))
if [ "$(GOLINT_INSTALLED)" = "" ]; then \
sh scripts/install-golangci-lint.sh -b $(GO_PATH)/bin v1.50.1; \
sh scripts/install-golangci-lint.sh -b $(GO_PATH)/bin v1.51.0; \
fi;
.PHONY: cleangen
-1
View File
@@ -426,7 +426,6 @@ func TestServer_AddEventerToContext(t *testing.T) {
}
func TestSetupWorkerPublicAddress(t *testing.T) {
t.Parallel()
tests := []struct {
name string
inputConfig *config.Config
-1
View File
@@ -1888,7 +1888,6 @@ func TestDatabaseSkipSharedLockAcquisition(t *testing.T) {
}
func TestSetupControllerPublicClusterAddress(t *testing.T) {
t.Parallel()
tests := []struct {
name string
inputConfig *Config