From e8dfe16d127655a8db2e4b0b1387235496f69998 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Wed, 28 Dec 2022 11:57:43 -0800 Subject: [PATCH] plugins: Upgrade to wasmtime 3.0.1 --- go.mod | 2 +- go.sum | 4 ++-- internal/ext/wasm/wasm.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 5853cfed27..801bf959eb 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220626175859-9abda183db8e - github.com/bytecodealliance/wasmtime-go v1.0.0 + github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 github.com/cubicdaiya/gonp v1.0.4 github.com/davecgh/go-spew v1.1.1 github.com/go-sql-driver/mysql v1.7.0 diff --git a/go.sum b/go.sum index 291a59352d..b815f4c2b8 100644 --- a/go.sum +++ b/go.sum @@ -5,8 +5,8 @@ github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220626175859-9abda183db8e h1:b github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20220626175859-9abda183db8e/go.mod h1:F7bn7fEU90QkQ3tnmaTx3LTKLEDqnwWODIYppRQ5hnY= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/bytecodealliance/wasmtime-go v1.0.0 h1:9u9gqaUiaJeN5IoD1L7egD8atOnTGyJcNp8BhkL9cUU= -github.com/bytecodealliance/wasmtime-go v1.0.0/go.mod h1:jjlqQbWUfVSbehpErw3UoWFndBXRRMvfikYH6KsCwOg= +github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA= +github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyzCCRzZcxCgsZCi+RNlvYor5Q= github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= diff --git a/internal/ext/wasm/wasm.go b/internal/ext/wasm/wasm.go index 5dee8831e7..4b3314e64f 100644 --- a/internal/ext/wasm/wasm.go +++ b/internal/ext/wasm/wasm.go @@ -19,14 +19,14 @@ import ( "runtime/trace" "strings" - wasmtime "github.com/bytecodealliance/wasmtime-go" + wasmtime "github.com/bytecodealliance/wasmtime-go/v3" "github.com/kyleconroy/sqlc/internal/info" "github.com/kyleconroy/sqlc/internal/plugin" ) // This version must be updated whenever the wasmtime-go dependency is updated -const wasmtimeVersion = `v1.0.0` +const wasmtimeVersion = `v3.0.2` func cacheDir() (string, error) { cache := os.Getenv("SQLCCACHE")