From 8089f7ea102f41b4aac67a2517fb8f5764138c1e Mon Sep 17 00:00:00 2001 From: Pravin Pushkar Date: Fri, 3 Jun 2022 10:28:43 +0530 Subject: [PATCH] Update go version to 1.18 (#982) * Update go version to 1.18 Signed-off-by: Pravin Pushkar * Bumping golangci-lint Signed-off-by: Pravin Pushkar Signed-off-by: hueifeng <695979933@qq.com> --- .github/workflows/dapr_cli.yaml | 4 ++-- .github/workflows/kind_e2e.yaml | 2 +- .github/workflows/self_hosted_e2e.yaml | 2 +- .github/workflows/upgrade_e2e.yaml | 2 +- Makefile | 2 +- docs/development/development.md | 2 +- go.mod | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dapr_cli.yaml b/.github/workflows/dapr_cli.yaml index a1a27af55..317e65567 100644 --- a/.github/workflows/dapr_cli.yaml +++ b/.github/workflows/dapr_cli.yaml @@ -29,8 +29,8 @@ jobs: name: Build ${{ matrix.target_os }}_${{ matrix.target_arch }} binaries runs-on: ${{ matrix.os }} env: - GOVER: 1.17 - GOLANG_CI_LINT_VER: v1.44.2 + GOVER: 1.18 + GOLANG_CI_LINT_VER: v1.46.2 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} GOPROXY: https://proxy.golang.org diff --git a/.github/workflows/kind_e2e.yaml b/.github/workflows/kind_e2e.yaml index da1b15d63..71787b53f 100644 --- a/.github/workflows/kind_e2e.yaml +++ b/.github/workflows/kind_e2e.yaml @@ -45,7 +45,7 @@ jobs: name: E2E tests for K8s (KinD) runs-on: ubuntu-latest env: - GOVER: 1.17 + GOVER: 1.18 DAPR_RUNTIME_VERSION: 1.7.0 DAPR_DASHBOARD_VERSION: 0.10.0 DAPR_TGZ: dapr-1.7.0.tgz diff --git a/.github/workflows/self_hosted_e2e.yaml b/.github/workflows/self_hosted_e2e.yaml index 281bcd28e..c538b43f5 100644 --- a/.github/workflows/self_hosted_e2e.yaml +++ b/.github/workflows/self_hosted_e2e.yaml @@ -31,7 +31,7 @@ jobs: name: Run Self-Hosted E2E tests in ${{ matrix.target_os }}_${{ matrix.target_arch }} runs-on: ${{ matrix.os }} env: - GOVER: 1.17 + GOVER: 1.18 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} GOPROXY: https://proxy.golang.org diff --git a/.github/workflows/upgrade_e2e.yaml b/.github/workflows/upgrade_e2e.yaml index 018bc6c16..96c739996 100644 --- a/.github/workflows/upgrade_e2e.yaml +++ b/.github/workflows/upgrade_e2e.yaml @@ -45,7 +45,7 @@ jobs: name: Upgrade path tests (KinD) runs-on: ubuntu-latest env: - GOVER: 1.17 + GOVER: 1.18 strategy: fail-fast: false # Keep running if one leg fails. matrix: diff --git a/Makefile b/Makefile index 994107638..cc497551e 100644 --- a/Makefile +++ b/Makefile @@ -188,7 +188,7 @@ e2e-build-run-sh: build test-e2e-sh ################################################################################ .PHONY: go.mod go.mod: - go mod tidy -compat=1.17 + go mod tidy -compat=1.18 ################################################################################ # Target: check-diff # diff --git a/docs/development/development.md b/docs/development/development.md index b10e04516..e1804de92 100644 --- a/docs/development/development.md +++ b/docs/development/development.md @@ -7,7 +7,7 @@ This document helps you get started developing Dapr CLI. If you find any problem ### Linux and MacOS -1. The Go language environment `1.17` [(instructions)](https://golang.org/doc/install#tarball). +1. The Go language environment `1.18` [(instructions)](https://golang.org/doc/install#tarball). * Make sure that your GOPATH and PATH are configured correctly ```bash export GOPATH=~/go diff --git a/go.mod b/go.mod index f6cda1c34..06e8bbce3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/dapr/cli -go 1.17 +go 1.18 require ( github.com/Azure/go-autorest/autorest v0.11.23 // indirect