diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f774ee34..02430e65 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 30bd109f..1addf749 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -11,11 +11,11 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go: ['1.21'] + go: ['1.22'] os: [ubuntu-latest, macos-latest] upload-coverage: [true] include: - - go: '1.21' + - go: '1.22' os: windows-latest upload-coverage: false @@ -233,7 +233,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Build run: | @@ -297,7 +297,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Build run: | @@ -518,7 +518,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - uses: actions/checkout@v4 - name: Run golangci-lint uses: golangci/golangci-lint-action@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27584d63..b930c7c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: tags: 'v*' env: - GO_VERSION: 1.21.3 + GO_VERSION: 1.22.0 jobs: prepare-sources-with-deps: diff --git a/Dockerfile b/Dockerfile index 5ef6bc4b..784485ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-bookworm as builder +FROM golang:1.22-bookworm as builder ENV GOFLAGS="-mod=readonly" diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 56b0e959..230da12e 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine3.19 AS builder +FROM golang:1.22-alpine3.19 AS builder ENV GOFLAGS="-mod=readonly" diff --git a/Dockerfile.distroless b/Dockerfile.distroless index 6fdb3f58..35416090 100644 --- a/Dockerfile.distroless +++ b/Dockerfile.distroless @@ -1,4 +1,4 @@ -FROM golang:1.21-bookworm as builder +FROM golang:1.22-bookworm as builder ENV CGO_ENABLED=0 GOFLAGS="-mod=readonly" diff --git a/go.mod b/go.mod index 02598674..81157105 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/drakkan/sftpgo/v2 -go 1.21 +go 1.22 require ( cloud.google.com/go/storage v1.38.0