Skip to content

Commit

Permalink
Revert "setup-go: Get Go version from go.mod"
Browse files Browse the repository at this point in the history
This reverts commit dd5ddc2.

This was a good idea but #1748 impacts this as we no longer update the
patch version in the go.mod directive. Thus the CI is running outdated
Go versions.
  • Loading branch information
mtardy committed Dec 6, 2023
1 parent 7c7cb63 commit d0ee9a9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
- name: Go version
run: go version
- name: Validate that generated files are up to date.
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gotests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go/src/github.com/cilium/tetragon/go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'

- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/podinfo-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'

- name: Install Kind and create cluster
uses: helm/kind-action@dda0770415bac9fc20092cacbc54aa298604d140 # v1.8.0
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go/src/github.com/cilium/tetragon/go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'

- name: Set Up Job Variables
id: vars
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/static-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'
# using golangci-lint cache instead
cache: false

Expand All @@ -46,7 +47,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'

- name: Check gofmt formatting
run: |
Expand Down Expand Up @@ -75,7 +77,8 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'

- name: Check module vendoring
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/vmtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ jobs:
group: ${{ github.ref }}-vmtest-build
cancel-in-progress: true
steps:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.1'

- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: go/src/github.com/cilium/tetragon/

- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go/src/github.com/cilium/tetragon/go.mod'

- name: Install build dependencies
run: |
sudo apt install libelf-dev netcat-traditional libcap-dev gcc
Expand Down

0 comments on commit d0ee9a9

Please sign in to comment.