Skip to content

Commit

Permalink
upgrade go version
Browse files Browse the repository at this point in the history
  • Loading branch information
theFong committed Feb 9, 2024
1 parent 201b9f0 commit 519feea
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18
FROM golang:1.20

# [Option] Install zsh
ARG INSTALL_ZSH="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ChangePwd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoProjectBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoUserBrevNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoUserBrevProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProjectRepoNoBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupFileChange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupRanNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupUpdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UnauthenticatedSSHKey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV1All.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV1Minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_VscodeExtension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_httpGit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20
cache: true

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20
cache: true


Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
golang 1.19
golang 1.20
2 changes: 1 addition & 1 deletion bin/gen-e2e-actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 519feea

Please sign in to comment.