Merge pull request #2 from storyicon/docs/add-go-version

docs(readme): add go version suggestion in doc
This commit is contained in:
storyicon 2021-07-29 11:15:00 +08:00 committed by GitHub
commit 3953017597
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ PowerProto is used to solve the following three main problems:
## Installation and Dependencies ## Installation and Dependencies
1. The current version of `PowerProto` relies on `go` and `git` (in the future it may use CDN to pull built binaries directly), please make sure the runtime environment contains these two commands. 1. The current version of `PowerProto` relies on `go`(>=1.16) and `git` (in the future it may use CDN to pull built binaries directly), please make sure the runtime environment contains these two commands.
2. `protoc` download source is Github, `PowerProto` respects `HTTP_PROXY`, `HTTPS_PROXY` environment variables when downloading `protoc`, if you encounter network problems, please configure your own proxy. 2. `protoc` download source is Github, `PowerProto` respects `HTTP_PROXY`, `HTTPS_PROXY` environment variables when downloading `protoc`, if you encounter network problems, please configure your own proxy.
3. When querying the version list of `protoc`, `git ls-remote` is used for `github.com`, if you encounter network problems, please configure the proxy for `git` by yourself. 3. When querying the version list of `protoc`, `git ls-remote` is used for `github.com`, if you encounter network problems, please configure the proxy for `git` by yourself.
4. In the current version, downloading and querying plugin versions rely on the `go` command, so if you encounter network problems, please configure the `GOPROXY` environment variable yourself. 4. In the current version, downloading and querying plugin versions rely on the `go` command, so if you encounter network problems, please configure the `GOPROXY` environment variable yourself.

View file

@ -48,7 +48,7 @@ PowerProto主要用于解决下面三个问题
## 安装与依赖 ## 安装与依赖
1. 目前版本的 `PowerProto` 依赖 `go` 以及 `git`未来可能会直接使用CDN拉取构建好的二进制请确保运行环境中包含这两个命令。 1. 目前版本的 `PowerProto` 依赖 `go`(>=1.16) 以及 `git`未来可能会直接使用CDN拉取构建好的二进制请确保运行环境中包含这两个命令。
2. `protoc`的下载源是Github`PowerProto`在下载`protoc`时尊重 `HTTP_PROXY``HTTPS_PROXY`环境变量,如果遇到网络问题,请自行配置代理。 2. `protoc`的下载源是Github`PowerProto`在下载`protoc`时尊重 `HTTP_PROXY``HTTPS_PROXY`环境变量,如果遇到网络问题,请自行配置代理。
3. 在查询`protoc`的版本列表时,会对`github.com`使用`git ls-remote`,如果遇到网络问题,请自行为`git`配置代理。 3. 在查询`protoc`的版本列表时,会对`github.com`使用`git ls-remote`,如果遇到网络问题,请自行为`git`配置代理。
4. 在当前版本,下载和查询插件版本均依赖`go`命令,所以如果遇到网络问题,请自行配置 `GOPROXY`环境变量。 4. 在当前版本,下载和查询插件版本均依赖`go`命令,所以如果遇到网络问题,请自行配置 `GOPROXY`环境变量。