ci: align Go toolchain to go.mod 1.25 #5
@@ -94,7 +94,9 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24'
|
||||
# Install exactly the version go.mod requires so GOTOOLCHAIN=local has
|
||||
# a matching toolchain and never needs to download one.
|
||||
go-version-file: backend/go.mod
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ RUN npm run build
|
||||
# ---------------------------------------------------------------------------
|
||||
# Stage 2: build the Go binary with the UI embedded
|
||||
# ---------------------------------------------------------------------------
|
||||
FROM golang:1.24-alpine AS builder
|
||||
FROM golang:1.25-alpine AS builder
|
||||
|
||||
# Pure-Go SQLite (modernc.org/sqlite) means no C toolchain is needed.
|
||||
RUN apk add --no-cache git
|
||||
|
||||
@@ -114,7 +114,6 @@ if ($BuildWindows) {
|
||||
$GoVersionInfo = Join-Path (Join-Path $env:USERPROFILE "go\bin") "goversioninfo.exe"
|
||||
if (-not (Test-Path $GoVersionInfo)) {
|
||||
Write-Host " Installing goversioninfo..." -ForegroundColor Yellow
|
||||
$env:GOTOOLCHAIN = "local"
|
||||
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@v1.7.0
|
||||
}
|
||||
$vp = $Version -split '\.'
|
||||
|
||||
Reference in New Issue
Block a user