From 935a38d95b2b9a26344daffbd36750bb1c06a637 Mon Sep 17 00:00:00 2001 From: Evgenii Baidakov Date: Tue, 20 Aug 2024 12:03:31 +0400 Subject: [PATCH] *: Upgrade to Go 1.22 Closes #136. Signed-off-by: Evgenii Baidakov --- .github/workflows/builds.yml | 2 +- .github/workflows/system-tests.yml | 2 +- .github/workflows/tests.yml | 4 ++-- CHANGELOG.md | 2 +- Dockerfile | 2 +- go.mod | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 5404139..fe44ca3 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -49,7 +49,7 @@ jobs: uses: actions/setup-go@v5 with: cache: true - go-version: '1.22' + go-version: '1.23' - name: Check version run: if [[ $(make version) == *"dirty"* ]]; then exit 1; fi diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml index 4bc5104..8919e2e 100644 --- a/.github/workflows/system-tests.yml +++ b/.github/workflows/system-tests.yml @@ -62,7 +62,7 @@ jobs: uses: actions/setup-go@v5 with: cache: true - go-version: '1.22' + go-version: '1.23' - run: go version - name: Set up Python diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 04d2337..6fb6f7f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -40,7 +40,7 @@ jobs: uses: actions/setup-go@v5 with: cache: true - go-version: '1.22' + go-version: '1.23' - name: Test and write coverage profile run: make cover @@ -59,7 +59,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - go_versions: [ '1.21', '1.22' ] # The latest is used by Coverage already. + go_versions: [ '1.22', '1.23' ] # The latest is used by Coverage already. fail-fast: false steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG.md b/CHANGELOG.md index cce4d7c..037078d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ This document outlines major changes between releases. ## [Unreleased] ### Changed -- Go 1.21+ is required to build now (#98) +- Go 1.22+ is required to build now (#98, #136) ### Updated - github.com/nspcc-dev/neo-go dependency from v0.106.0 to v0.106.3 (#98) diff --git a/Dockerfile b/Dockerfile index d177ab3..0ad1dc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22 as basebuilder +FROM golang:1.23 as basebuilder RUN set -x \ && apt-get update \ diff --git a/go.mod b/go.mod index f2f175d..f0be3b1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/nspcc-dev/neofs-rest-gw -go 1.21 +go 1.22 require ( github.com/getkin/kin-openapi v0.127.0