chore: support Go 1.24 & 1.25 (#3366)

This commit is contained in:
Marco Munizaga
2025-08-18 06:39:23 -07:00
committed by GitHub
parent 9f5945e189
commit 78f84c40c8
5 changed files with 8 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ name: Go Checks
on: on:
pull_request: pull_request:
push: push:
branches: ["master","release-v0[0-9][0-9]"] branches: ["master", "release-v0[0-9][0-9]"]
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -17,6 +17,5 @@ jobs:
go-check: go-check:
uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@v1.0 uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@v1.0
with: with:
go-version: "1.24.x" go-version: "1.25.x"
go-generate-ignore-protoc-version-comments: true go-generate-ignore-protoc-version-comments: true

View File

@@ -3,7 +3,7 @@ name: Go Test
on: on:
pull_request: pull_request:
push: push:
branches: ["master","release-v0[0-9][0-9]"] branches: ["master", "release-v0[0-9][0-9]"]
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -17,6 +17,6 @@ jobs:
go-test: go-test:
uses: ./.github/workflows/go-test-template.yml uses: ./.github/workflows/go-test-template.yml
with: with:
go-versions: '["1.23.x", "1.24.x"]' go-versions: '["1.24.x", "1.25.x"]'
secrets: secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/libp2p/go-libp2p module github.com/libp2p/go-libp2p
go 1.23.8 go 1.24.6
retract v0.26.1 // Tag was applied incorrectly due to a bug in the release workflow. retract v0.26.1 // Tag was applied incorrectly due to a bug in the release workflow.

View File

@@ -1,14 +1,14 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
# This is run from the parent directory to copy the whole go-libp2p codebase # This is run from the parent directory to copy the whole go-libp2p codebase
FROM golang:1.23-alpine AS builder FROM golang:1.24-alpine AS builder
WORKDIR /app/ WORKDIR /app/
COPY ./ . COPY ./ .
WORKDIR /app/test-plans WORKDIR /app/test-plans
RUN go mod download RUN go mod download
RUN go build -o /testplan ./cmd/ping RUN go build -o /testplan ./cmd/ping
FROM alpine FROM alpine
WORKDIR /app WORKDIR /app

View File

@@ -1,6 +1,6 @@
module github.com/libp2p/go-libp2p/test-plans/m/v2 module github.com/libp2p/go-libp2p/test-plans/m/v2
go 1.23.8 go 1.24.6
require ( require (
github.com/go-redis/redis/v8 v8.11.5 github.com/go-redis/redis/v8 v8.11.5