Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/wasip1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Prerequisites

- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - v0.3.0
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - Latest version
- [**go**](https://go.dev/dl/) - v1.25+
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v43.0.0

Expand Down
14 changes: 13 additions & 1 deletion examples/wasip2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Prerequisites

- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - v0.3.0
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - Latest version
- [**go**](https://go.dev/dl/) - v1.25+
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v43.0.0

Expand All @@ -28,3 +28,15 @@ make run-tests
make generate-bindings
go test ./unit_tests_should_pass ./unit_tests_should_fail
```

### Run `go vet`

The generated code will fail the default `go vet` analysis due to:
- How `unsafe.Pointer` is used
- How the WIT tuple type is represented in Go

If you must perform static analysis on the generated code, this is the workaround:

```sh
go vet -unsafeptr=false -composites=false ./...
```
2 changes: 1 addition & 1 deletion examples/wasip3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ switch to the upstream releases.

### Prerequisites

- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - v0.3.0
- [**componentize-go**](https://github.com/bytecodealliance/componentize-go) - Latest version
- [**wasmtime**](https://github.com/bytecodealliance/wasmtime) - v43.0.0

### Build and Run
Expand Down