From 1b9146f081efef0ea160f6dd438da425cf03edec Mon Sep 17 00:00:00 2001 From: Davies Liu Date: Wed, 10 Jan 2024 21:05:12 +0800 Subject: [PATCH 1/2] require Go 1.20+ to build --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 2f7457c909a5..26755e43395d 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/juicedata/juicefs -go 1.18 +go 1.20 require ( cloud.google.com/go/compute v1.7.0 From fa5a17735f7754845cf8de12cdaaf6ad108dd9b9 Mon Sep 17 00:00:00 2001 From: Davies Liu Date: Tue, 16 Jan 2024 13:31:52 +0800 Subject: [PATCH 2/2] require Go 1.20+ to build --- .github/scripts/chaos/juicefs-csi-driver.Dockerfile | 2 +- .github/workflows/verify.yml | 2 +- docs/en/deployment/hadoop_java_sdk.md | 2 +- docs/en/getting-started/installation.md | 4 ++-- docs/en/reference/how_to_set_up_object_storage.md | 2 +- docs/zh_cn/getting-started/installation.md | 4 ++-- docs/zh_cn/reference/how_to_set_up_object_storage.md | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/scripts/chaos/juicefs-csi-driver.Dockerfile b/.github/scripts/chaos/juicefs-csi-driver.Dockerfile index cafb4e7e7709..661fe029268b 100644 --- a/.github/scripts/chaos/juicefs-csi-driver.Dockerfile +++ b/.github/scripts/chaos/juicefs-csi-driver.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.18-buster as builder +FROM golang:1.20-buster as builder ARG GOPROXY # refs/remotes/pull/3056/merge diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index df1c5c0917f9..0bda2fd5e842 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -44,7 +44,7 @@ jobs: strategy: fail-fast: false matrix: - version: ['1.18', '1.19', '1.20', '1.21'] + version: ['1.20', '1.21'] runs-on: ubuntu-20.04 steps: - name: Check out code diff --git a/docs/en/deployment/hadoop_java_sdk.md b/docs/en/deployment/hadoop_java_sdk.md index d9a3cc378dfb..107b9f434276 100644 --- a/docs/en/deployment/hadoop_java_sdk.md +++ b/docs/en/deployment/hadoop_java_sdk.md @@ -57,7 +57,7 @@ No matter which system environment the client is compiled for, the compiled JAR Compilation depends on the following tools: -- [Go](https://golang.org) 1.18+ +- [Go](https://golang.org) 1.20+ - JDK 8+ - [Maven](https://maven.apache.org) 3.3+ - Git diff --git a/docs/en/getting-started/installation.md b/docs/en/getting-started/installation.md index 0bc4d0165fb1..255ff8f9ce51 100644 --- a/docs/en/getting-started/installation.md +++ b/docs/en/getting-started/installation.md @@ -256,7 +256,7 @@ For users in China, in order to speed up the acquisition of Go modules, it is re Compiling clients for Linux, macOS, BSD and other Unix-like systems requires the following dependencies: -- [Go](https://golang.org) 1.18+ +- [Go](https://golang.org) 1.20+ - GCC 5.4+ 1. Clone source code @@ -296,7 +296,7 @@ Compiling clients for Linux, macOS, BSD and other Unix-like systems requires the To compile the JuiceFS client on Windows system, the following dependencies need to be installed: - [WinFsp](https://github.com/winfsp/winfsp) -- [Go](https://golang.org) 1.18+ +- [Go](https://golang.org) 1.20+ - GCC 5.4+ Among them, WinFsp and Go can be downloaded and installed directly. GCC needs to use a version provided by a third party, which can use [MinGW-w64](https://www.mingw-w64.org) or [Cygwin](https://www.cygwin.com). Here we take MinGW-w64 as an example. diff --git a/docs/en/reference/how_to_set_up_object_storage.md b/docs/en/reference/how_to_set_up_object_storage.md index e5639d7d19ed..996276b23801 100644 --- a/docs/en/reference/how_to_set_up_object_storage.md +++ b/docs/en/reference/how_to_set_up_object_storage.md @@ -772,7 +772,7 @@ sudo yum install librados2-devel -Then compile JuiceFS for Ceph (make sure you have Go 1.18+ and GCC 5.4+ installed): +Then compile JuiceFS for Ceph (make sure you have Go 1.20+ and GCC 5.4+ installed): ```bash make juicefs.ceph diff --git a/docs/zh_cn/getting-started/installation.md b/docs/zh_cn/getting-started/installation.md index c25e88c5c4a8..c7b7ab752d49 100644 --- a/docs/zh_cn/getting-started/installation.md +++ b/docs/zh_cn/getting-started/installation.md @@ -254,7 +254,7 @@ CMD [ "juicefs" ] 编译面向 Linux、macOS、BSD 等类 Unix 系统的客户端需要满足以下依赖: -- [Go](https://golang.org) 1.18+ +- [Go](https://golang.org) 1.20+ - GCC 5.4+ 1. 克隆源码 @@ -294,7 +294,7 @@ CMD [ "juicefs" ] 在 Windows 系统编译 JuiceFS 客户端需要安装以下依赖: - [WinFsp](https://github.com/winfsp/winfsp) -- [Go](https://golang.org) 1.18+ +- [Go](https://golang.org) 1.20+ - GCC 5.4+ 其中,WinFsp 和 Go 直接下载安装即可。GCC 需要使用第三方提供的版本,可以使用 [MinGW-w64](https://www.mingw-w64.org) 或 [Cygwin](https://www.cygwin.com),这里以 MinGW-w64 为例介绍。 diff --git a/docs/zh_cn/reference/how_to_set_up_object_storage.md b/docs/zh_cn/reference/how_to_set_up_object_storage.md index c6c8202511d7..914f47adbab4 100644 --- a/docs/zh_cn/reference/how_to_set_up_object_storage.md +++ b/docs/zh_cn/reference/how_to_set_up_object_storage.md @@ -773,7 +773,7 @@ sudo yum install librados2-devel -然后为 Ceph 编译 JuiceFS(要求 Go 1.18+ 和 GCC 5.4+): +然后为 Ceph 编译 JuiceFS(要求 Go 1.20+ 和 GCC 5.4+): ```bash make juicefs.ceph