Skip to content

Commit

Permalink
fix: update TinyGo version (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
yingjianjian authored Sep 25, 2023
1 parent 35e7bbc commit cb27836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ The compilation environment requirements are as follows:

- Go version: >= 1.18 (need to support generic features)

- TinyGo version: 0.25.0 (0.25.0 recommended)
- TinyGo version: 0.28.1 (0.28.1 recommended)

The following is an example of local steps to build the [request-block](https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions/request-block) plugin.

### step1. Compile wasm

```bash
tinygo build -o main.wasm -scheduler=none -target=wasi ./main.go
tinygo build -o main.wasm -scheduler=none -target=wasi -gc=custom -tags='custommalloc nottinygc_finalizer' ./main.go
```

### step2. Build and push the docker image of the plugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ description: 自定义插件配置参考

- Go 版本: >= 1.18(需要支持泛型特性)

- TinyGo 版本: >= 0.25.0(建议使用 0.25.0
- TinyGo 版本: >= 0.28.1(建议使用 0.28.1

下面是本地步骤构建 [request-block](https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions/request-block) 插件的例子。

### step1. 编译 wasm

```bash
tinygo build -o main.wasm -scheduler=none -target=wasi ./main.go
tinygo build -o main.wasm -scheduler=none -target=wasi -gc=custom -tags='custommalloc nottinygc_finalizer' ./main.go
```

### step2. 构建并推送插件的 docker 镜像
Expand Down

0 comments on commit cb27836

Please sign in to comment.