From 519feead08f6493462e6c891912c4c5bc2bf6394 Mon Sep 17 00:00:00 2001 From: alecfong1 Date: Fri, 9 Feb 2024 04:07:27 +0000 Subject: [PATCH] upgrade go version --- .devcontainer/Dockerfile | 2 +- ...est_CanClonePublicRepoWithoutAuthorizeddKeysAllFormats.yml | 2 +- .github/workflows/Test_ChangePwd.yml | 2 +- .../workflows/Test_CustomBranchCustomSetupCustomFolder.yml | 2 +- .github/workflows/Test_NoProjectBrev.yml | 2 +- .github/workflows/Test_NoUserBrevNoProj.yml | 2 +- .github/workflows/Test_NoUserBrevProj.yml | 2 +- .github/workflows/Test_ProjectRepoNoBrev.yml | 2 +- .github/workflows/Test_ProvidedSetupFileChange.yml | 2 +- .github/workflows/Test_ProvidedSetupRanNoProj.yml | 2 +- .github/workflows/Test_ProvidedSetupUpdated.yml | 2 +- .github/workflows/Test_UnauthenticatedSSHKey.yml | 2 +- .github/workflows/Test_UserBrevProjectBrevV0.yml | 2 +- .github/workflows/Test_UserBrevProjectBrevV1All.yml | 2 +- .github/workflows/Test_UserBrevProjectBrevV1Minimal.yml | 2 +- .github/workflows/Test_VscodeExtension.yml | 2 +- .github/workflows/Test_httpGit.yml | 2 +- .github/workflows/build.yml | 2 +- .github/workflows/fmt.yml | 2 +- .github/workflows/legacy.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/vet.yml | 2 +- .golangci.yml | 3 --- .tool-versions | 2 +- bin/gen-e2e-actions.py | 2 +- go.mod | 2 +- tools/go.mod | 2 +- 29 files changed, 29 insertions(+), 32 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 09e1c68b..9b491648 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18 +FROM golang:1.20 # [Option] Install zsh ARG INSTALL_ZSH="true" diff --git a/.github/workflows/Test_CanClonePublicRepoWithoutAuthorizeddKeysAllFormats.yml b/.github/workflows/Test_CanClonePublicRepoWithoutAuthorizeddKeysAllFormats.yml index 796d73a4..b2153b8c 100644 --- a/.github/workflows/Test_CanClonePublicRepoWithoutAuthorizeddKeysAllFormats.yml +++ b/.github/workflows/Test_CanClonePublicRepoWithoutAuthorizeddKeysAllFormats.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_ChangePwd.yml b/.github/workflows/Test_ChangePwd.yml index dae20f1c..3b46003c 100644 --- a/.github/workflows/Test_ChangePwd.yml +++ b/.github/workflows/Test_ChangePwd.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_CustomBranchCustomSetupCustomFolder.yml b/.github/workflows/Test_CustomBranchCustomSetupCustomFolder.yml index 760547fc..7170f5ab 100644 --- a/.github/workflows/Test_CustomBranchCustomSetupCustomFolder.yml +++ b/.github/workflows/Test_CustomBranchCustomSetupCustomFolder.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_NoProjectBrev.yml b/.github/workflows/Test_NoProjectBrev.yml index 6121c318..677ba09d 100644 --- a/.github/workflows/Test_NoProjectBrev.yml +++ b/.github/workflows/Test_NoProjectBrev.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_NoUserBrevNoProj.yml b/.github/workflows/Test_NoUserBrevNoProj.yml index 45e911f2..6a74f332 100644 --- a/.github/workflows/Test_NoUserBrevNoProj.yml +++ b/.github/workflows/Test_NoUserBrevNoProj.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_NoUserBrevProj.yml b/.github/workflows/Test_NoUserBrevProj.yml index 8641cdf9..b07c7404 100644 --- a/.github/workflows/Test_NoUserBrevProj.yml +++ b/.github/workflows/Test_NoUserBrevProj.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_ProjectRepoNoBrev.yml b/.github/workflows/Test_ProjectRepoNoBrev.yml index 181dde65..ba9a129e 100644 --- a/.github/workflows/Test_ProjectRepoNoBrev.yml +++ b/.github/workflows/Test_ProjectRepoNoBrev.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_ProvidedSetupFileChange.yml b/.github/workflows/Test_ProvidedSetupFileChange.yml index 51df6b6f..47b44989 100644 --- a/.github/workflows/Test_ProvidedSetupFileChange.yml +++ b/.github/workflows/Test_ProvidedSetupFileChange.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_ProvidedSetupRanNoProj.yml b/.github/workflows/Test_ProvidedSetupRanNoProj.yml index 8697723c..a38830fb 100644 --- a/.github/workflows/Test_ProvidedSetupRanNoProj.yml +++ b/.github/workflows/Test_ProvidedSetupRanNoProj.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_ProvidedSetupUpdated.yml b/.github/workflows/Test_ProvidedSetupUpdated.yml index af0a0bd1..577d9b32 100644 --- a/.github/workflows/Test_ProvidedSetupUpdated.yml +++ b/.github/workflows/Test_ProvidedSetupUpdated.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_UnauthenticatedSSHKey.yml b/.github/workflows/Test_UnauthenticatedSSHKey.yml index 4efb6b12..e804e8ba 100644 --- a/.github/workflows/Test_UnauthenticatedSSHKey.yml +++ b/.github/workflows/Test_UnauthenticatedSSHKey.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_UserBrevProjectBrevV0.yml b/.github/workflows/Test_UserBrevProjectBrevV0.yml index 93eb90bd..50a53e7b 100644 --- a/.github/workflows/Test_UserBrevProjectBrevV0.yml +++ b/.github/workflows/Test_UserBrevProjectBrevV0.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_UserBrevProjectBrevV1All.yml b/.github/workflows/Test_UserBrevProjectBrevV1All.yml index 162c9a21..2a45e341 100644 --- a/.github/workflows/Test_UserBrevProjectBrevV1All.yml +++ b/.github/workflows/Test_UserBrevProjectBrevV1All.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_UserBrevProjectBrevV1Minimal.yml b/.github/workflows/Test_UserBrevProjectBrevV1Minimal.yml index 7c47870f..d473005a 100644 --- a/.github/workflows/Test_UserBrevProjectBrevV1Minimal.yml +++ b/.github/workflows/Test_UserBrevProjectBrevV1Minimal.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_VscodeExtension.yml b/.github/workflows/Test_VscodeExtension.yml index 1122f868..a0737a9c 100644 --- a/.github/workflows/Test_VscodeExtension.yml +++ b/.github/workflows/Test_VscodeExtension.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/Test_httpGit.yml b/.github/workflows/Test_httpGit.yml index 5aa95d06..e402a1eb 100644 --- a/.github/workflows/Test_httpGit.yml +++ b/.github/workflows/Test_httpGit.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2df79420..d47efde8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: Build diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index a2da7399..9d61dd51 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true diff --git a/.github/workflows/legacy.yml b/.github/workflows/legacy.yml index d17621c2..fc92a34d 100644 --- a/.github/workflows/legacy.yml +++ b/.github/workflows/legacy.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: Build run: make ci @@ -62,7 +62,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: Release test run: make build diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2682bd37..a7e9dd59 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: install run: make install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cfe71198..f2a6f97d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: Release run: make ci smoke-test release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0dd33c5c..bd0d8320 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: install run: make install diff --git a/.github/workflows/vet.yml b/.github/workflows/vet.yml index 1e2ae4de..7ccb8d54 100644 --- a/.github/workflows/vet.yml +++ b/.github/workflows/vet.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: install run: make install diff --git a/.golangci.yml b/.golangci.yml index da08f8db..09b12371 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -58,16 +58,13 @@ linters: # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint disable-all: true enable: - - deadcode - errcheck - gosimple - govet - ineffassign # - staticcheck - - structcheck - typecheck - unused - - varcheck - bodyclose # - depguard - dupl diff --git a/.tool-versions b/.tool-versions index 1799f52f..f3ab9141 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -golang 1.19 +golang 1.20 diff --git a/bin/gen-e2e-actions.py b/bin/gen-e2e-actions.py index 64e0c4f4..6471b6b0 100644 --- a/bin/gen-e2e-actions.py +++ b/bin/gen-e2e-actions.py @@ -27,7 +27,7 @@ def generate_file_content(test_name): - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.19 + go-version: 1.20 cache: true - name: expire test cache run: go clean -testcache diff --git a/go.mod b/go.mod index 8b00b306..0c369859 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/brevdev/brev-cli -go 1.19 +go 1.20 require ( github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 diff --git a/tools/go.mod b/tools/go.mod index ffe9f4fe..338a55c3 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module github.com/brevdev/brev-cli/build -go 1.18 +go 1.20 require ( github.com/golangci/golangci-lint v1.46.2