Upgrade go to 1.20 (#24390)

Signed-off-by: yah01 <yang.cen@zilliz.com>
This commit is contained in:
yah01 2023-11-10 07:46:18 +08:00 committed by GitHub
parent 8a370f115a
commit 6f59510723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 14 deletions

View File

@ -1,5 +1,5 @@
run:
go: "1.18"
go: "1.20"
skip-dirs:
- build
- configs
@ -158,3 +158,6 @@ issues:
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
service:
golangci-lint-version: 1.51.0 # use the fixed version to not introduce new linters unexpectedly

View File

@ -61,7 +61,7 @@ Here's a list of verified OS types where Milvus can successfully build and run:
Linux systems (Recommend Ubuntu 20.04 or later):
```bash
go: >= 1.18
go: >= 1.20
cmake: >= 3.18
gcc: 7.5
```
@ -69,7 +69,7 @@ gcc: 7.5
MacOS systems with x86_64 (Big Sur 11.5 or later recommended):
```bash
go: >= 1.18
go: >= 1.20
cmake: >= 3.18
llvm: >= 15
```
@ -77,7 +77,7 @@ llvm: >= 15
MacOS systems with Apple Silicon (Monterey 12.0.1 or later recommended):
```bash
go: >= 1.18 (Arch=ARM64)
go: >= 1.20 (Arch=ARM64)
cmake: >= 3.18
llvm: >= 15
```
@ -132,8 +132,7 @@ Confirm that your `GOPATH` and `GOBIN` environment variables are correctly set a
```shell
$ go version
```
Note: go >= 1.18 is required to build Milvus.
Note: go >= 1.20 is required to build Milvus.
#### Docker & Docker Compose

View File

@ -72,21 +72,21 @@ Check the requirements first.
Linux systems (Ubuntu 20.04 or later recommended):
```bash
go: >= 1.18
go: >= 1.20
cmake: >= 3.18
gcc: 7.5
```
MacOS systems with x86_64 (Big Sur 11.5 or later recommended):
```bash
go: >= 1.18
go: >= 1.20
cmake: >= 3.18
llvm: >= 15
```
MacOS systems with Apple Silicon (Monterey 12.0.1 or later recommended):
```bash
go: >= 1.18 (Arch=ARM64)
go: >= 1.20 (Arch=ARM64)
cmake: >= 3.18
llvm: >= 15
```

View File

@ -68,7 +68,7 @@ Milvus 基于 [Apache 2.0 License](https://github.com/milvus-io/milvus/blob/mast
请先安装相关依赖。
```
go: 1.18
go: 1.20
cmake: >=3.18
gcc: 7.5
protobuf: >=3.7

View File

@ -1,2 +1,2 @@
FROM golang:1.18.3-alpine3.16
FROM golang:1.20.4-alpine3.17
RUN apk add --no-cache make bash

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/milvus-io/milvus
go 1.18
go 1.20
require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.0

View File

@ -1,6 +1,6 @@
module github.com/milvus-io/milvus/pkg
go 1.18
go 1.20
require (
github.com/apache/pulsar-client-go v0.6.1-0.20210728062540-29414db801a7

View File

@ -4,7 +4,7 @@
```
OS: Ubuntu 20.04
go1.18
go1.20
cmake: >=3.18
gcc 7.5
```