Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update go version from 1.20 to 1.22.3 #1086

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

MO 主要由 Go 语言编写,因此需要提前安装部署好相关的开发环境,简要的示例流程如下:

1. 安装版本为 1.20 的 Go,您可以通过 [Download Go](https://go.dev/dl/) 与 [Installation instructions](https://go.dev/doc/install) 教程来完成整个过程。
1. 安装版本为 1.22.3 的 Go,您可以通过 [Download Go](https://go.dev/dl/) 与 [Installation instructions](https://go.dev/doc/install) 教程来完成整个过程。
2. 定义环境变量并修改路径,您可以遵循以下示例流程:

```sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MatrixOne 支持 x86 及 ARM 的 Linux 系统。本文以 Debian11.1 x86 架构

| 依赖软件 | 版本 |
| ------------ | ------------- |
| golang | 1.20 及以上 |
| golang | 1.22.3 及以上 |
| gcc | gcc8.5 及以上 |
| git | 2.20 及以上 |
| MySQL Client | 8.0 及以上 |
Expand All @@ -24,7 +24,7 @@ MatrixOne 支持 x86 及 ARM 的 Linux 系统。本文以 Debian11.1 x86 架构
2. 验证 **Go** 是否安装,请执行代码 `go version`,安装成功代码行示例如下:

```
go version go1.20.4 linux/amd64
go version go1.22.3 linux/amd64
```

### 2. 安装 GCC
Expand Down Expand Up @@ -194,7 +194,7 @@ MO_CONTAINER_DEBUG_PORT="12345"
CHECK_LIST=("go" "gcc" "git" "mysql" "docker")
GCC_VERSION="8.5.0"
CLANG_VERSION="13.0"
GO_VERSION="1.20"
GO_VERSION="1.22.3"
MO_GIT_URL="https://github.com/matrixorigin/matrixone.git"
MO_DEFAULT_VERSION="v1.2.0"
GOPROXY="https://goproxy.cn,direct"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MatrixOne 支持 x86 及 ARM 的 macOS 系统,本文以 Macbook M1 ARM 版本

| 依赖软件 | 版本 |
| ------------ | ------------------------------- |
| golang | 1.20 及以上 |
| golang | 1.22.3 及以上 |
| gcc/clang | gcc8.5 及以上,clang13.0 及以上 |
| git | 2.20 及以上 |
| MySQL Client | 8.0 及以上 |
Expand All @@ -25,7 +25,7 @@ MatrixOne 支持 x86 及 ARM 的 macOS 系统,本文以 Macbook M1 ARM 版本

```
> go version
go version go1.20.5 darwin/arm64
go version go1.22.3 darwin/arm64
```

### 2. 安装 GCC/Clang
Expand Down Expand Up @@ -175,7 +175,7 @@ MO_CONTAINER_DEBUG_PORT="12345"
CHECK_LIST=("go" "gcc" "git" "mysql" "docker")
GCC_VERSION="8.5.0"
CLANG_VERSION="13.0"
GO_VERSION="1.20"
GO_VERSION="1.22.3"
MO_GIT_URL="https://github.com/matrixorigin/matrixone.git"
MO_DEFAULT_VERSION="v1.2.0"
GOPROXY="https://goproxy.cn,direct"
Expand Down
2 changes: 1 addition & 1 deletion docs/MatrixOne/Reference/mo-tools/mo_ctl.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ Usage : mo_ctl getconf [conf_list] # get configurations
| MO_PW | 连接 MatrixOne 服务使用的密码 | 密码,默认为 111 |
| CHECK_LIST | precheck 需要的检查依赖项 | 默认为 ("go" "gcc" "git" "mysql") |
| GCC_VERSION | precheck 检查的 gcc 版本 | 默认为 8.5.0 |
| GO_VERSION | precheck 检查的 go 版本 | 默认为 1.20 |
| GO_VERSION | precheck 检查的 go 版本 | 默认为 1.22.3 |
| MO_GIT_URL | MatrixOne 的源码拉取地址 | 默认为<https://github.com/matrixorigin/matrixone.git> |
| MO_DEFAULT_VERSION | 默认拉取的 MatrixOne 的版本 | 默认为 1.2.0 |
| GOPROXY | GOPROXY 的地址,一般为国内加速拉取 golang 依赖包而使用 | 默认为<https://goproxy.cn>,direct |
Expand Down
8 changes: 4 additions & 4 deletions docs/MatrixOne/parser_camp_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

### 1. Make sure your golang environment

To build MatrixOne locally, golang 1.20 is required. You can follow these steps to make sure your golang whether is ready.
To build MatrixOne locally, golang 1.22.3 is required. You can follow these steps to make sure your golang whether is ready.

```
$ go version
```

If the result is like `'go version go1.20 xxxxxx'`, you can skip step 2 and build your MatrixOne. If lower than go 1.20 or no golang, your can follow step 2 to configure your own golang 1.20 environment locally.
If the result is like `'go version go1.22.3 xxxxxx'`, you can skip step 2 and build your MatrixOne. If lower than go 1.22.3 or no golang, your can follow step 2 to configure your own golang 1.22.3 environment locally.

### 2. Configure your golang environment

Expand All @@ -20,8 +20,8 @@ After installation, use step 1 to make sure again.
If your OS is Linux, still download golang package and modify your profile. Here is a sampe as following. The path can be modified as your preferred.

```
$ wget https://go.dev/dl/go1.20.1.linux-amd64.tar.gz
$ sudo tar -zxvf go1.20.1.linux-amd64.tar.gz -C /usr/local
$ wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
$ sudo tar -zxvf go1.22.3.linux-amd64.tar.gz -C /usr/local
$ cat >> /etc/profile << EOF
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
Expand Down
Loading