Skip to content

Commit

Permalink
switch to Go 1.22
Browse files Browse the repository at this point in the history
Go 1.22.0 was released on February 6th, a week ago.
  • Loading branch information
mvdan committed Feb 19, 2024
1 parent 0b79233 commit 227a2d8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'
- name: Tidy go module
run: |
go mod tidy
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- uses: benjlevesque/[email protected] # sets env.SHA to the first 7 chars of github.sha
- uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'
- run: mkdir -p "$PWD/gocoverage-unit/"
- name: Run Go test -race
id: go-test-race
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'
- name: Run go build for Mac
run: |
# Some of our devs are on Mac. Ensure it builds.
Expand All @@ -167,7 +167,7 @@ jobs:
- uses: actions/download-artifact@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'
cache: false
- name: Convert gocoverage format
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scan_vulns_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.21'
go-version: '1.22'

- name: Scan in Repo (html)
uses: aquasecurity/trivy-action@master
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:experimental

FROM golang:1.21 AS builder
FROM golang:1.22 AS builder

ARG BUILDARGS

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To run a Vocdoni-node as a gateway, it's recommended to have at least 4 GiB of R

#### Compile and run

Compile from source in a golang environment (Go>1.21 required):
Compile from source in a golang environment (Go>1.22 required):

```bash
git clone https://github.com/vocdoni/vocdoni-node.git -b release-lts-1
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/testsuite/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ services:
command: "true"

gocoverage:
image: golang:1.21
image: golang:1.22
volumes:
- gocoverage-seed:/app/run/gocoverage/seed
- gocoverage-miner0:/app/run/gocoverage/miner0
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 go.vocdoni.io/dvote

go 1.21
go 1.22

// For testing purposes
// replace go.vocdoni.io/proto => ../dvote-protobuf
Expand Down

0 comments on commit 227a2d8

Please sign in to comment.