From 741ea99d8cb05221a2ea01732f1c992921ca4313 Mon Sep 17 00:00:00 2001 From: Vito Castellano Date: Sat, 11 Oct 2025 02:09:34 +0200 Subject: [PATCH] chore: upgrade to Go 1.25 and golangci-lint v2.5.0 Update Go to 1.25 and golangci-lint to v2.5.0 for better tooling support. --- .github/workflows/quality.yml | 6 +++--- .github/workflows/release.yml | 2 +- Containerfile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index b9850e0..0eb4189 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -16,11 +16,11 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version: '1.25' - name: golangci-lint uses: golangci/golangci-lint-action@v8 with: - version: v2.1 + version: v2.5.0 skip-cache: true build: @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version: '1.25' - name: Get dependencies run: go mod download - name: Build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18a0995..93e9135 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: stable + go-version: '1.25' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 diff --git a/Containerfile b/Containerfile index 324fc89..004b4a7 100644 --- a/Containerfile +++ b/Containerfile @@ -1,7 +1,7 @@ FROM golang:1.25 # Install dependencies -RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6 +RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.5.0 RUN go install github.com/goreleaser/goreleaser/v2@latest WORKDIR /app \ No newline at end of file