Skip to content

Commit

Permalink
fix: upgraded github workflow versions and to go 1.22.1
Browse files Browse the repository at this point in the history
There is an issue with using go 1.22; we need to use 1.22.0 or .1.
The error is:
go: download go1.22 for linux/amd64: toolchain not available

It should work to download go1.22.1 toolchain.
  • Loading branch information
meling committed Mar 9, 2024
1 parent 0e6366d commit 0eb454c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
test:
strategy:
matrix:
go-version: ['1.22']
go-version: ["1.22.1"]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -26,10 +26,10 @@ jobs:
${{ runner.os }}-go-
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go environment
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22.1"
cache: false
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --timeout 5m
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/relab/hotstuff

go 1.22
go 1.22.1

require (
github.com/felixge/fgprof v0.9.4
Expand Down

0 comments on commit 0eb454c

Please sign in to comment.