AlinsRan commented on code in PR #10729: URL: https://github.com/apache/apisix/pull/10729#discussion_r1440056934
########## docs/en/latest/building-apisix.md: ########## @@ -45,22 +45,22 @@ To build and package APISIX for a specific platform, see [apisix-build-tools](ht ## Building APISIX from source -Install dependencies using the script provided by APISIX: +First of all, we need to specify the version `APISIX_ VERSION` to be installed: ```shell -curl https://raw.githubusercontent.com/apache/apisix/master/utils/install-dependencies.sh -sL | bash - +APISIX_VERSION='3.7.0' ``` -Save the APISIX version to an environment variable to be used next: +Then, you can run the following command to clone the APISIX source code from Github: ```shell -APISIX_VERSION='3.7.0' +git clone --depth 1 --branch ${APISIX_VERSION} https://github.com/apache/apisix.git apisix-${APISIX_VERSION} ``` -Clone the APISIX source code of this version into a new directory `apisix-APISIX_VERSION`: +Now, by changing to the directory of the APISIX source code, you can install the dependencies with the following command: Review Comment: Updated! ########## docs/zh/latest/building-apisix.md: ########## @@ -44,23 +44,22 @@ import TabItem from '@theme/TabItem'; ## 源码安装 APISIX -首先,你可以通过以下命令安装依赖项: +首先,我们需要指定需要安装的版本`APISIX_VERSION`: ```shell -curl https://raw.githubusercontent.com/apache/apisix/master/utils/install-dependencies.sh -sL | bash - +APISIX_VERSION='3.7.0' ``` -然后,创建一个目录并设置环境变量 `APISIX_VERSION`: +然后,你可以运行以下命令,从 Github 克隆 APISIX 源码: ```shell -APISIX_VERSION='3.7.0' -mkdir apisix-${APISIX_VERSION} +git clone --depth 1 --branch ${APISIX_VERSION} https://github.com/apache/apisix.git apisix-${APISIX_VERSION} ``` -现在,你可以运行以下命令,从 Github 克隆 APISIX 源码: +现在,切换到 APISIX 源码的目录,你可以通过以下命令安装依赖项: Review Comment: Updated! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
