From 0bd7d4da2f1ec4dfd2593af0abf9d49d0d7eeb08 Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Tue, 30 Aug 2022 15:33:17 +0300 Subject: [PATCH] [#694] Update go version to 1.19 Signed-off-by: Denis Kirillov --- .docker/Dockerfile | 2 +- .github/workflows/builds.yml | 4 ++-- .github/workflows/tests.yml | 4 ++-- CHANGELOG.md | 1 + Makefile | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 26b97e7a..dca0b681 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17 as builder +FROM golang:1.19 as builder ARG BUILD=now ARG REPO=github.com/nspcc-dev/neofs-s3-gw diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 1af579b7..d08a7bd3 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -21,7 +21,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.19 - name: Restore Go modules from cache uses: actions/cache@v2 @@ -60,7 +60,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.19 - name: Restore Go modules from cache uses: actions/cache@v2 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cecafdb4..e1438c08 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.19 - name: Restore Go modules from cache uses: actions/cache@v2 @@ -67,7 +67,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - go_versions: [ '1.17.x', '1.18.x' ] + go_versions: [ '1.18.x', '1.19.x' ] fail-fast: false steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index f2b78072..31c57f59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This document outlines major changes between releases. - Configuration of `set_copies_number` (#634, #637) ### Changed - Improved wallet configuration via `.yaml` config and environment variables (#607) +- Update go version for build to 1.19 (#694) ### Removed ### Fixed - Responses to `GetObject` and `HeadObject`: removed redundant `VersionID` (#577) diff --git a/Makefile b/Makefile index a0c37940..4bb3fbc8 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # Common variables REPO ?= $(shell go list -m) VERSION ?= $(shell git describe --tags --dirty --match "v*" --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop") -GO_VERSION ?= 1.17 +GO_VERSION ?= 1.19 LINT_VERSION ?= 1.46.2 BINDIR = bin