10000 feat(plugins): Use wazero instead of wasmtime by kyleconroy · Pull Request #3042 · sqlc-dev/sqlc · GitHub
[go: up one dir, main page]

Skip to content

feat(plugins): Use wazero instead of wasmtime #3042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update internal/ext/wasm/wasm.go
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
  • Loading branch information
kyleconroy and anuraaga authored Dec 6, 2023
commit 7517d032de6f04dbba8475be20c702ee9e9cce86
6 changes: 3 additions & 3 deletions internal/ext/wasm/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ func checkError(err error, stderr io.Reader) error {
}

// Print WASM stdout
stderrBlob, rferr := io.ReadAll(stderr)
if rferr == nil && len(stderrBlob) > 0 {
return errors.New(string(stderrBlob))
stderrBlob := stderr.String()
if len(stderrBlob) > 0 {
return errors.New(stderrBlob)
}
return fmt.Errorf("call: %w", err)
}
0