update to Go 1.22

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-02-17 20:42:33 +01:00
parent a45aeb3bd6
commit 5a319dc64f
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
7 changed files with 11 additions and 11 deletions

View file

@ -22,7 +22,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.22'
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@v2 uses: github/codeql-action/init@v2

View file

@ -11,11 +11,11 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go: ['1.21'] go: ['1.22']
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
upload-coverage: [true] upload-coverage: [true]
include: include:
- go: '1.21' - go: '1.22'
os: windows-latest os: windows-latest
upload-coverage: false upload-coverage: false
@ -233,7 +233,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.22'
- name: Build - name: Build
run: | run: |
@ -297,7 +297,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.22'
- name: Build - name: Build
run: | run: |
@ -518,7 +518,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.22'
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Run golangci-lint - name: Run golangci-lint
uses: golangci/golangci-lint-action@v4 uses: golangci/golangci-lint-action@v4

View file

@ -5,7 +5,7 @@ on:
tags: 'v*' tags: 'v*'
env: env:
GO_VERSION: 1.21.3 GO_VERSION: 1.22.0
jobs: jobs:
prepare-sources-with-deps: prepare-sources-with-deps:

View file

@ -1,4 +1,4 @@
FROM golang:1.21-bookworm as builder FROM golang:1.22-bookworm as builder
ENV GOFLAGS="-mod=readonly" ENV GOFLAGS="-mod=readonly"

View file

@ -1,4 +1,4 @@
FROM golang:1.21-alpine3.19 AS builder FROM golang:1.22-alpine3.19 AS builder
ENV GOFLAGS="-mod=readonly" ENV GOFLAGS="-mod=readonly"

View file

@ -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" ENV CGO_ENABLED=0 GOFLAGS="-mod=readonly"

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/drakkan/sftpgo/v2 module github.com/drakkan/sftpgo/v2
go 1.21 go 1.22
require ( require (
cloud.google.com/go/storage v1.38.0 cloud.google.com/go/storage v1.38.0