From efea51a9eebaf3ca84bed0dd06cafdc1557b38cb Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Wed, 14 Sep 2022 12:29:19 +0200 Subject: [PATCH] bump Go version to 1.19.1 (#3108) The reason is to cover vulnerability GO-2022-0969 Found in: net/http@go1.18.5 Fixed in: net/http@go1.19.1 More info: https://pkg.go.dev/vuln/GO-2022-0969 Signed-off-by: hagen1778 Signed-off-by: hagen1778 --- .github/workflows/check-licenses.yml | 2 +- .github/workflows/main.yml | 2 +- Makefile | 2 +- README.md | 6 +++--- app/vmagent/README.md | 4 ++-- app/vmalert/README.md | 4 ++-- app/vmauth/README.md | 2 +- app/vmbackup/README.md | 2 +- app/vmctl/README.md | 4 ++-- app/vmrestore/README.md | 2 +- docs/vmagent.md | 4 ++-- docs/vmalert.md | 4 ++-- docs/vmauth.md | 2 +- docs/vmbackup.md | 2 +- docs/vmctl.md | 4 ++-- docs/vmrestore.md | 2 +- go.mod | 2 +- 17 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index 0739969a3..2552ca7ef 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Go uses: actions/setup-go@main with: - go-version: 1.18 + go-version: 1.19.1 id: go - name: Code checkout uses: actions/checkout@master diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eb198e314..4d1c98b7a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Go uses: actions/setup-go@main with: - go-version: 1.18 + go-version: 1.19.1 id: go - name: Code checkout uses: actions/checkout@master diff --git a/Makefile b/Makefile index 8751f276f..f2d78468d 100644 --- a/Makefile +++ b/Makefile @@ -364,7 +364,7 @@ benchmark-pure: vendor-update: go get -u -d ./lib/... go get -u -d ./app/... - go mod tidy -compat=1.18 + go mod tidy -compat=1.19.1 go mod vendor app-local: diff --git a/README.md b/README.md index c1c4eaa29..be34a205e 100644 --- a/README.md +++ b/README.md @@ -779,7 +779,7 @@ to your needs or when testing bugfixes. ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1 2. Run `make victoria-metrics` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics` binary and puts it into the `bin` folder. @@ -795,7 +795,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1 2. Run `make victoria-metrics-linux-arm` or `make victoria-metrics-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-linux-arm` or `victoria-metrics-linux-arm64` binary respectively and puts it into the `bin` folder. @@ -809,7 +809,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b `Pure Go` mode builds only Go code without [cgo](https://golang.org/cmd/cgo/) dependencies. -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1 2. Run `make victoria-metrics-pure` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `victoria-metrics-pure` binary and puts it into the `bin` folder. diff --git a/app/vmagent/README.md b/app/vmagent/README.md index d9663e830..8e7fb2542 100644 --- a/app/vmagent/README.md +++ b/app/vmagent/README.md @@ -829,7 +829,7 @@ We recommend using [binary releases](https://github.com/VictoriaMetrics/Victoria ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmagent` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds the `vmagent` binary and puts it into the `bin` folder. @@ -858,7 +858,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmagent-linux-arm` or `make vmagent-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics) It builds `vmagent-linux-arm` or `vmagent-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/app/vmalert/README.md b/app/vmalert/README.md index c96f56659..d8b5c8e86 100644 --- a/app/vmalert/README.md +++ b/app/vmalert/README.md @@ -1177,7 +1177,7 @@ spec: ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmalert` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert` binary and puts it into the `bin` folder. @@ -1193,7 +1193,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmalert-linux-arm` or `make vmalert-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert-linux-arm` or `vmalert-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/app/vmauth/README.md b/app/vmauth/README.md index 379b43dd1..c23c87032 100644 --- a/app/vmauth/README.md +++ b/app/vmauth/README.md @@ -167,7 +167,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmauth` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmauth` binary and puts it into the `bin` folder. diff --git a/app/vmbackup/README.md b/app/vmbackup/README.md index 6a3ac28bf..8dd3755e1 100644 --- a/app/vmbackup/README.md +++ b/app/vmbackup/README.md @@ -276,7 +276,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmbackup` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmbackup` binary and puts it into the `bin` folder. diff --git a/app/vmctl/README.md b/app/vmctl/README.md index ae33f2daa..35e3f5e70 100644 --- a/app/vmctl/README.md +++ b/app/vmctl/README.md @@ -699,7 +699,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmctl` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl` binary and puts it into the `bin` folder. @@ -728,7 +728,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b #### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmctl-linux-arm` or `make vmctl-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl-linux-arm` or `vmctl-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/app/vmrestore/README.md b/app/vmrestore/README.md index bfc2a3646..35bb1521b 100644 --- a/app/vmrestore/README.md +++ b/app/vmrestore/README.md @@ -176,7 +176,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmrestore` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmrestore` binary and puts it into the `bin` folder. diff --git a/docs/vmagent.md b/docs/vmagent.md index c92dcb0ec..502d6080f 100644 --- a/docs/vmagent.md +++ b/docs/vmagent.md @@ -833,7 +833,7 @@ We recommend using [binary releases](https://github.com/VictoriaMetrics/Victoria ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmagent` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds the `vmagent` binary and puts it into the `bin` folder. @@ -862,7 +862,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmagent-linux-arm` or `make vmagent-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics) It builds `vmagent-linux-arm` or `vmagent-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/docs/vmalert.md b/docs/vmalert.md index e13d03915..b11855f1d 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -1181,7 +1181,7 @@ spec: ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmalert` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert` binary and puts it into the `bin` folder. @@ -1197,7 +1197,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b ### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmalert-linux-arm` or `make vmalert-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmalert-linux-arm` or `vmalert-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/docs/vmauth.md b/docs/vmauth.md index 63f1de9d3..a36ba220d 100644 --- a/docs/vmauth.md +++ b/docs/vmauth.md @@ -171,7 +171,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmauth` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmauth` binary and puts it into the `bin` folder. diff --git a/docs/vmbackup.md b/docs/vmbackup.md index d7042690f..3d8009f21 100644 --- a/docs/vmbackup.md +++ b/docs/vmbackup.md @@ -280,7 +280,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmbackup` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmbackup` binary and puts it into the `bin` folder. diff --git a/docs/vmctl.md b/docs/vmctl.md index bfbff6ef2..5781696e8 100644 --- a/docs/vmctl.md +++ b/docs/vmctl.md @@ -703,7 +703,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmctl` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl` binary and puts it into the `bin` folder. @@ -732,7 +732,7 @@ ARM build may run on Raspberry Pi or on [energy-efficient ARM servers](https://b #### Development ARM build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmctl-linux-arm` or `make vmctl-linux-arm64` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmctl-linux-arm` or `vmctl-linux-arm64` binary respectively and puts it into the `bin` folder. diff --git a/docs/vmrestore.md b/docs/vmrestore.md index 67f540903..8e4866b2b 100644 --- a/docs/vmrestore.md +++ b/docs/vmrestore.md @@ -180,7 +180,7 @@ It is recommended using [binary releases](https://github.com/VictoriaMetrics/Vic ### Development build -1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.18. +1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.19.1. 2. Run `make vmrestore` from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics). It builds `vmrestore` binary and puts it into the `bin` folder. diff --git a/go.mod b/go.mod index b52530a4a..f8ec5aa1d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/VictoriaMetrics/VictoriaMetrics -go 1.18 +go 1.19 require ( cloud.google.com/go/storage v1.26.0