From a976fb354c1cdf755b040d09fb34726952c2d95e Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Fri, 19 May 2023 16:46:01 +0300 Subject: [PATCH] [#380] node: go version up Signed-off-by: Dmitrii Stepanov --- .docker/Dockerfile.adm | 2 +- .docker/Dockerfile.ci | 2 +- .docker/Dockerfile.cli | 2 +- .docker/Dockerfile.ir | 2 +- .docker/Dockerfile.storage | 2 +- .docker/Dockerfile.storage-testnet | 2 +- CHANGELOG.md | 1 + README.md | 2 +- go.mod | 2 +- scripts/export-metrics/main.go | 3 +-- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.docker/Dockerfile.adm b/.docker/Dockerfile.adm index 09d66e642..f0075c7ab 100644 --- a/.docker/Dockerfile.adm +++ b/.docker/Dockerfile.adm @@ -1,4 +1,4 @@ -FROM golang:1.18 as builder +FROM golang:1.20 as builder ARG BUILD=now ARG VERSION=dev ARG REPO=repository diff --git a/.docker/Dockerfile.ci b/.docker/Dockerfile.ci index 010616a17..e22762b7b 100644 --- a/.docker/Dockerfile.ci +++ b/.docker/Dockerfile.ci @@ -1,4 +1,4 @@ -FROM golang:1.19 +FROM golang:1.20 WORKDIR /tmp diff --git a/.docker/Dockerfile.cli b/.docker/Dockerfile.cli index c706359b3..8fad863be 100644 --- a/.docker/Dockerfile.cli +++ b/.docker/Dockerfile.cli @@ -1,4 +1,4 @@ -FROM golang:1.18 as builder +FROM golang:1.20 as builder ARG BUILD=now ARG VERSION=dev ARG REPO=repository diff --git a/.docker/Dockerfile.ir b/.docker/Dockerfile.ir index 9f8e72386..0b01ea7e4 100644 --- a/.docker/Dockerfile.ir +++ b/.docker/Dockerfile.ir @@ -1,4 +1,4 @@ -FROM golang:1.18 as builder +FROM golang:1.20 as builder ARG BUILD=now ARG VERSION=dev ARG REPO=repository diff --git a/.docker/Dockerfile.storage b/.docker/Dockerfile.storage index 39eb19559..dd9ff2684 100644 --- a/.docker/Dockerfile.storage +++ b/.docker/Dockerfile.storage @@ -1,4 +1,4 @@ -FROM golang:1.18 as builder +FROM golang:1.20 as builder ARG BUILD=now ARG VERSION=dev ARG REPO=repository diff --git a/.docker/Dockerfile.storage-testnet b/.docker/Dockerfile.storage-testnet index 908ff0aad..28bbf7a1b 100644 --- a/.docker/Dockerfile.storage-testnet +++ b/.docker/Dockerfile.storage-testnet @@ -1,4 +1,4 @@ -FROM golang:1.18 as builder +FROM golang:1.20 as builder ARG BUILD=now ARG VERSION=dev ARG REPO=repository diff --git a/CHANGELOG.md b/CHANGELOG.md index 97feb2245..337a03794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ Changelog for FrostFS Node - `github.com/spf13/cobra` to `v1.7.0` - `github.com/multiformats/go-multiaddr` to `v0.9.0` - `go.uber.org/atomic` to `v1.11.0` +- Minimum go version to v1.19 ### Updating from v0.36.0 diff --git a/README.md b/README.md index 81701c441..f228cd426 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ The latest version of frostfs-node works with frostfs-contract # Building -To make all binaries you need Go 1.18+ and `make`: +To make all binaries you need Go 1.19+ and `make`: ``` make all ``` diff --git a/go.mod b/go.mod index 2e9286a05..5c6972f4b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module git.frostfs.info/TrueCloudLab/frostfs-node -go 1.18 +go 1.19 require ( git.frostfs.info/TrueCloudLab/frostfs-api-go/v2 v2.15.1-0.20230418080822-bd44a3f47b85 diff --git a/scripts/export-metrics/main.go b/scripts/export-metrics/main.go index ac6e786ab..694eea38b 100644 --- a/scripts/export-metrics/main.go +++ b/scripts/export-metrics/main.go @@ -4,7 +4,6 @@ import ( "encoding/json" "flag" "fmt" - "io/ioutil" "os" "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/metrics" @@ -49,7 +48,7 @@ func main() { os.Exit(1) } - if err := ioutil.WriteFile(filename, data, 0644); err != nil { + if err := os.WriteFile(filename, data, 0644); err != nil { fmt.Fprintf(os.Stderr, "Could write to file: %v\n", err) os.Exit(1) }