diff --git a/content/en/docs/hertz/getting-started/_index.md b/content/en/docs/hertz/getting-started/_index.md index 2a0948efbb..b7c684d405 100644 --- a/content/en/docs/hertz/getting-started/_index.md +++ b/content/en/docs/hertz/getting-started/_index.md @@ -141,6 +141,11 @@ For more information on how to use hz, please refer to: [hz](/zh/docs/hertz/tuto ```bash go mod init # If your codes are not placed under `GOPATH`, you can skip `go mod init`. + + # Since in this example we use .thrift as IDL, make sure the github.com/apache/thrift version in go.mod is v0.13.0 + go mod edit -replace github.com/apache/thrift=github.com/apache/thrift@v0.13.0 + + # Tidy & get dependencies go mod tidy ``` diff --git a/content/zh/docs/hertz/getting-started/_index.md b/content/zh/docs/hertz/getting-started/_index.md index ae50ad913f..64abfa9afe 100644 --- a/content/zh/docs/hertz/getting-started/_index.md +++ b/content/zh/docs/hertz/getting-started/_index.md @@ -139,6 +139,10 @@ hz 是 Hertz 框架提供的一个用于生成代码的命令行工具,可以 ```bash go mod init # 当前目录不在 GOPATH 下不需要 `go mod init` 这一步 + + # 由于本示例使用 .thrift 作为 IDL,请确保 go.mod 中的 github.com/apache/thrift 版本为 v0.13.0 + go mod edit -replace github.com/apache/thrift=github.com/apache/thrift@v0.13.0 + go mod tidy ```