Skip to content

Commit

Permalink
Update to go v1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGustafsson committed Feb 19, 2025
1 parent 779a097 commit 177b698
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
uses: actions/checkout@v4

- name: Run tests
env:
# Use the toolchain specified in go.mod, or newer
GOTOOLCHAIN: auto
run: go test -short -v ./...

build-bot:
Expand All @@ -39,6 +42,9 @@ jobs:
uses: actions/checkout@v4

- name: Build bot
env:
# Use the toolchain specified in go.mod, or newer
GOTOOLCHAIN: auto
run: go build -o bot cmd/bot/*.go

build-ytplay:
Expand All @@ -50,4 +56,7 @@ jobs:
uses: actions/checkout@v4

- name: Build ytplay
env:
# Use the toolchain specified in go.mod, or newer
GOTOOLCHAIN: auto
run: go build -o ytplay cmd/ytplay/*.go
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM --platform=${BUILDPLATFORM} golang:1.23 as builder
FROM --platform=${BUILDPLATFORM} golang:1.24 as builder

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and publish

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / Build and publish

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

WORKDIR /src

# Use the toolchain specified in go.mod, or newer
ENV GOTOOLCHAIN=auto

COPY go.mod go.sum .
RUN go mod download && go mod verify

Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/AlexGustafsson/clabbe

go 1.23
go 1.24

toolchain go1.24.0

require (
github.com/bwmarrin/discordgo v0.28.1
Expand Down

0 comments on commit 177b698

Please sign in to comment.