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:
1 parent
9dcf605251
commit
4146c0c55d
4 files changed
+2
-4
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
1.19.4
|
||||
1.20
|
||||
@@ -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
|
||||
|
||||
@@ -426,7 +426,6 @@ func TestServer_AddEventerToContext(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSetupWorkerPublicAddress(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := []struct {
|
||||
name string
|
||||
inputConfig *config.Config
|
||||
|
||||
@@ -1888,7 +1888,6 @@ func TestDatabaseSkipSharedLockAcquisition(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSetupControllerPublicClusterAddress(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := []struct {
|
||||
name string
|
||||
inputConfig *Config
|
||||
|
||||
Reference in new issue
Block a user