From d4ad785b76d3c9253e2464c7d3249182219b94ef Mon Sep 17 00:00:00 2001 From: "edward.zeng" Date: Wed, 16 Mar 2022 18:51:21 +0800 Subject: [PATCH] Bump go version in documentation (#15979) Signed-off-by: Edward Zeng --- DEVELOPMENT.md | 8 ++++---- README.md | 4 ++-- README_CN.md | 2 +- go.mod | 2 +- internal/util/metricsinfo/metrics_info_test.go | 16 ++++++++-------- scripts/README.md | 2 +- tools/check/go.mod | 2 +- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 44cbdfa6ae..02459b6f4a 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -55,14 +55,14 @@ Here's a list of verified OS types where Milvus can successfully build and run: #### Prerequisites Linux systems (Recommend Ubuntu 18.04 or later): ```bash -go: >= 1.15 +go: >= 1.16 cmake: >= 3.18 gcc: 7.5 ``` MacOS systems with x86_64 (Big Sur 11.5 or later recommended): ```bash -go: >= 1.15 +go: >= 1.16 cmake: >= 3.18 llvm: >= 12 ``` @@ -112,7 +112,7 @@ Confirm that your `GOPATH` and `GOBIN` environment variables are correctly set a ```shell $ go version ``` -Note: go >= 1.15 is required to build Milvus. +Note: go >= 1.16 is required to build Milvus. #### Docker & Docker Compose @@ -280,4 +280,4 @@ A: Use **Software Update** (from **About this Mac** -> **Overview**) to install --- Q: Some Go unit tests failed. -A: We are aware that some tests can be flaky occasionally. If there's something you believe is abnormal (i.e. tests that fail every single time). You are more than welcome to [file an issue](https://github.com/milvus-io/milvus/issues/new/choose)! \ No newline at end of file +A: We are aware that some tests can be flaky occasionally. If there's something you believe is abnormal (i.e. tests that fail every single time). You are more than welcome to [file an issue](https://github.com/milvus-io/milvus/issues/new/choose)! diff --git a/README.md b/README.md index 1a87b7ccc6..8f36dc70d5 100644 --- a/README.md +++ b/README.md @@ -71,14 +71,14 @@ Check the requirements first. Linux systems (Ubuntu 18.04 or later recommended): ```bash -go: >= 1.15 +go: >= 1.16 cmake: >= 3.18 gcc: 7.5 ``` MacOS systems with x86_64 (Big Sur 11.5 or later recommended): ```bash -go: >= 1.15 +go: >= 1.16 cmake: >= 3.18 llvm: >= 12 ``` diff --git a/README_CN.md b/README_CN.md index ee90e74976..cfffb22285 100644 --- a/README_CN.md +++ b/README_CN.md @@ -68,7 +68,7 @@ Milvus 基于 [Apache 2.0 License](https://github.com/milvus-io/milvus/blob/mast 请先安装相关依赖。 ``` -go: 1.15 +go: 1.16 cmake: >=3.18 gcc: 7.5 protobuf: >=3.7 diff --git a/go.mod b/go.mod index 3dda133e3e..d181f31360 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/milvus-io/milvus -go 1.15 +go 1.16 require ( github.com/HdrHistogram/hdrhistogram-go v1.0.1 // indirect diff --git a/internal/util/metricsinfo/metrics_info_test.go b/internal/util/metricsinfo/metrics_info_test.go index 1616888c80..7facedaf8d 100644 --- a/internal/util/metricsinfo/metrics_info_test.go +++ b/internal/util/metricsinfo/metrics_info_test.go @@ -42,7 +42,7 @@ func TestBaseComponentInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), @@ -79,7 +79,7 @@ func TestQueryNodeInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), @@ -127,7 +127,7 @@ func TestQueryCoordInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), @@ -169,7 +169,7 @@ func TestIndexNodeInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), @@ -212,7 +212,7 @@ func TestIndexCoordInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), @@ -253,7 +253,7 @@ func TestDataNodeInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), @@ -294,7 +294,7 @@ func TestDataCoordInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), @@ -335,7 +335,7 @@ func TestRootCoordInfos_Codec(t *testing.T) { DeployMode: ClusterDeployMode, BuildVersion: "2.0.0-rc8", BuildTime: "2021-11-24, 11:37:25", - UsedGoVersion: "go version go1.15.2 linux/amd64", + UsedGoVersion: "go version go1.16.9 linux/amd64", }, CreatedTime: time.Now().String(), UpdatedTime: time.Now().String(), diff --git a/scripts/README.md b/scripts/README.md index 40d35470f6..ac9dbf7418 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -4,7 +4,7 @@ ``` OS: Ubuntu 18.04 -go:1.15 +go:1.16 cmake: >=3.18 gcc: 7.5 ``` diff --git a/tools/check/go.mod b/tools/check/go.mod index acb4e7f78a..4b4470e4f0 100644 --- a/tools/check/go.mod +++ b/tools/check/go.mod @@ -1,6 +1,6 @@ module github.com/milvus-io/milvus/tools/check -go 1.15 +go 1.16 require ( github.com/fatih/color v1.10.0 // indirect