Update go version to 1.18 (#982)

* Update go version to 1.18

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>

* Bumping golangci-lint

Signed-off-by: Pravin Pushkar <ppushkar@microsoft.com>
This commit is contained in:
Pravin Pushkar 2022-06-03 10:28:43 +05:30 committed by GitHub
parent 0630996fb4
commit 3abbf3f933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

2
go.mod
View File

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