Skip to content

Commit

Permalink
update go version (#1333)
Browse files Browse the repository at this point in the history
* update go in workflows

Signed-off-by: Marco Deicas <mdeicas@google.com>

* fix formatting in yaml file

Signed-off-by: Marco Deicas <mdeicas@google.com>

* set up go before running golangci-lint-action

Signed-off-by: Marco Deicas <mdeicas@google.com>

* remove optimization

Signed-off-by: Marco Deicas <mdeicas@google.com>

* update go.mod and go.sum

Signed-off-by: Marco Deicas <mdeicas@google.com>

---------

Signed-off-by: Marco Deicas <mdeicas@google.com>
  • Loading branch information
mdeicas committed Oct 4, 2023
1 parent 67371d7 commit 7e52b35
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yaml
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # tag=v3.2.1
with:
go-version: '1.19'
go-version: '1.21'
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/go/pkg/mod
Expand All @@ -86,7 +86,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # tag=v3.2.1
with:
go-version: '1.19'
go-version: '1.21'
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/go/pkg/mod
Expand All @@ -105,7 +105,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # tag=v3.2.1
with:
go-version: '1.19'
go-version: '1.21'
- name: Install formatter
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Check format
Expand All @@ -118,6 +118,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # tag=v3
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # tag=v4.1.0
with:
go-version: '1.21'
- name: golangci-lint
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # tag=v3.2.0
with:
Expand All @@ -134,7 +138,7 @@ jobs:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: '~1.19'
go-version: '~1.21'
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236
with:
python-version: '3.10'
Expand Down Expand Up @@ -190,7 +194,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # tag=v3.2.1
with:
go-version: '1.19'
go-version: '1.21'
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/go/pkg/mod
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/postmerge.yaml
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # tag=v3.2.1
with:
go-version: '1.19'
go-version: '1.21'
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/go/pkg/mod
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Expand Up @@ -48,6 +48,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.21'
- name: Install cosign
uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # main
- name: Install syft
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/guacsec/guac

go 1.19
go 1.21

require (
cloud.google.com/go/storage v1.33.0
Expand Down

0 comments on commit 7e52b35

Please sign in to comment.