From 43e5e9828aa27394352e51cf4ed2f036a0459189 Mon Sep 17 00:00:00 2001 From: yangj1211 Date: Fri, 7 Jun 2024 18:24:08 +0800 Subject: [PATCH] update go from 1.20 to 1.22.3 --- .../Contribution-Guide/How-to-Contribute/preparation.md | 2 +- .../install-on-linux/install-on-linux-method1.md | 6 +++--- .../install-on-macos/install-on-macos-method1.md | 6 +++--- docs/MatrixOne/Reference/mo-tools/mo_ctl.md | 2 +- docs/MatrixOne/parser_camp_event.md | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/MatrixOne/Contribution-Guide/How-to-Contribute/preparation.md b/docs/MatrixOne/Contribution-Guide/How-to-Contribute/preparation.md index fe0706e0f1..eab814defc 100644 --- a/docs/MatrixOne/Contribution-Guide/How-to-Contribute/preparation.md +++ b/docs/MatrixOne/Contribution-Guide/How-to-Contribute/preparation.md @@ -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 diff --git a/docs/MatrixOne/Get-Started/install-on-linux/install-on-linux-method1.md b/docs/MatrixOne/Get-Started/install-on-linux/install-on-linux-method1.md index 3c6df396fc..57817988ab 100644 --- a/docs/MatrixOne/Get-Started/install-on-linux/install-on-linux-method1.md +++ b/docs/MatrixOne/Get-Started/install-on-linux/install-on-linux-method1.md @@ -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 及以上 | @@ -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 @@ -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" diff --git a/docs/MatrixOne/Get-Started/install-on-macos/install-on-macos-method1.md b/docs/MatrixOne/Get-Started/install-on-macos/install-on-macos-method1.md index 99ae13d89b..828695e8e5 100644 --- a/docs/MatrixOne/Get-Started/install-on-macos/install-on-macos-method1.md +++ b/docs/MatrixOne/Get-Started/install-on-macos/install-on-macos-method1.md @@ -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 及以上 | @@ -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 @@ -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" diff --git a/docs/MatrixOne/Reference/mo-tools/mo_ctl.md b/docs/MatrixOne/Reference/mo-tools/mo_ctl.md index f4cfba0554..1cc92c5508 100644 --- a/docs/MatrixOne/Reference/mo-tools/mo_ctl.md +++ b/docs/MatrixOne/Reference/mo-tools/mo_ctl.md @@ -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 的源码拉取地址 | 默认为 | | MO_DEFAULT_VERSION | 默认拉取的 MatrixOne 的版本 | 默认为 1.2.0 | | GOPROXY | GOPROXY 的地址,一般为国内加速拉取 golang 依赖包而使用 | 默认为,direct | diff --git a/docs/MatrixOne/parser_camp_event.md b/docs/MatrixOne/parser_camp_event.md index a494a77da4..6e35e5efea 100644 --- a/docs/MatrixOne/parser_camp_event.md +++ b/docs/MatrixOne/parser_camp_event.md @@ -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 @@ -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