chore: update to build with Go 1.21

This commit is contained in:
Adin Schmahmann 2023-09-18 09:40:43 -04:00 committed by Henrique Dias
parent 9fdb085605
commit a9737e4d6a
9 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ on:
- 'master'
env:
GO_VERSION: 1.20.x
GO_VERSION: 1.21.x
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}

View File

@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v4
- run: docker build -t $IMAGE_NAME:$WIP_IMAGE_TAG .
- run: docker run --rm $IMAGE_NAME:$WIP_IMAGE_TAG --version

View File

@ -32,7 +32,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Checkout kubo-gateway
uses: actions/checkout@v4
with:

View File

@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v4
- run: make cmd/ipfs-try-build
env:

View File

@ -27,7 +27,7 @@ jobs:
submodules: recursive
- uses: actions/setup-go@v4
with:
go-version: "1.20.x"
go-version: "1.21.x"
- name: Check that go.mod is tidy
uses: protocol/multiple-go-modules@v1.4
with:

View File

@ -31,6 +31,6 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- uses: actions/checkout@v4
- run: make -O test_go_lint

View File

@ -32,7 +32,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Check out Kubo
uses: actions/checkout@v4
- name: Install missing tools

View File

@ -25,7 +25,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Checkout Kubo
uses: actions/checkout@v4
with:

View File

@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20 AS builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21 AS builder
ARG TARGETOS TARGETARCH