diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb3d87d..cd4058f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,6 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go-version: ['1.25'] runs-on: ${{ matrix.os }} steps: @@ -24,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: ${{ matrix.go-version }} + go-version-file: go.mod - name: Build run: go build -v ./... @@ -42,7 +41,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.25' + go-version-file: go.mod - name: golangci-lint run: go tool golangci-lint run ./... diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index 625f944..38c42c3 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: - go-version: '1.25' + go-version-file: go.mod - name: Install swag run: go install github.com/swaggo/swag/cmd/swag@latest diff --git a/Dockerfile b/Dockerfile index 9c51d30..9a64c5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM golang:1.26.5-alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.26.6-alpine AS builder WORKDIR /src diff --git a/README.md b/README.md index 01012e2..ab42766 100644 --- a/README.md +++ b/README.md @@ -1024,7 +1024,7 @@ The proxy will recreate the database on next start. Requirements: -- Go 1.25 or later +- Go (the project version is declared in `go.mod`) ```bash git clone https://github.com/git-pkgs/proxy.git diff --git a/go.mod b/go.mod index 3449818..8c7165a 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/git-pkgs/proxy go 1.25.6 +toolchain go1.26.6 + require ( github.com/BurntSushi/toml v1.6.0 github.com/CycloneDX/cyclonedx-go v0.11.0