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.
pull/2948/head
Johan Brandhorst-Satzkorn 3 years ago committed by GitHub
parent 9dcf605251
commit 4146c0c55d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save