From 9557150a87208ddb0f10291ecc6611067c8b91cf Mon Sep 17 00:00:00 2001 From: Johnny Date: Sun, 31 Aug 2025 19:45:41 +0800 Subject: [PATCH] chore: upgrade go version to 1.25 --- .github/workflows/backend-tests.yml | 6 +++--- .github/workflows/build-artifacts.yml | 2 +- go.mod | 2 +- scripts/Dockerfile | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index 5f7ae8f74..ba0514ca8 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -18,12 +18,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.24 + go-version: 1.25 check-latest: true cache: true - name: Verify go.mod is tidy run: | - go mod tidy -go=1.24 + go mod tidy -go=1.25 git diff --exit-code - name: golangci-lint uses: golangci/golangci-lint-action@v8 @@ -38,7 +38,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: 1.24 + go-version: 1.25 check-latest: true cache: true - name: Run all tests diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index 7b9deee38..1d8a0888c 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-go@v5 with: - go-version: 1.24 + go-version: 1.25 check-latest: true cache: true - uses: pnpm/action-setup@v4.1.0 diff --git a/go.mod b/go.mod index 3a34efb62..14726a086 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/usememos/memos -go 1.24.0 +go 1.25 require ( github.com/aws/aws-sdk-go-v2 v1.38.3 diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 0a884a144..38456b37e 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.24-alpine AS backend +FROM golang:1.25-alpine AS backend WORKDIR /backend-build COPY go.mod go.sum ./ RUN go mod download