From b767b8100aa47d874147888daf7a6fe6e139676d Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Mon, 13 Feb 2023 10:10:25 -0800 Subject: [PATCH] wasm: Upgrade to wasmtime 5.0.0 --- 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 63d9598d20..1c58b29935 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/v3 v3.0.2 + github.com/bytecodealliance/wasmtime-go/v5 v5.0.0 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 166b4ef44c..55b3fe819e 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/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA= -github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyzCCRzZcxCgsZCi+RNlvYor5Q= +github.com/bytecodealliance/wasmtime-go/v5 v5.0.0 h1:Ue3eBDElMrdzWoUtr7uPr7NeDZriuR5oIivp5EHknQU= +github.com/bytecodealliance/wasmtime-go/v5 v5.0.0/go.mod h1:KcecyOqumZrvLnlaEIMFRbBaQeUYNvsbPjAEVho1Fcs= 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 d75f879e33..6b9c4992a3 100644 --- a/internal/ext/wasm/wasm.go +++ b/internal/ext/wasm/wasm.go @@ -19,7 +19,7 @@ import ( "runtime/trace" "strings" - wasmtime "github.com/bytecodealliance/wasmtime-go/v3" + wasmtime "github.com/bytecodealliance/wasmtime-go/v5" "golang.org/x/sync/singleflight" "github.com/kyleconroy/sqlc/internal/info" @@ -27,7 +27,7 @@ import ( ) // This version must be updated whenever the wasmtime-go dependency is updated -const wasmtimeVersion = `v3.0.2` +const wasmtimeVersion = `v5.0.0` func cacheDir() (string, error) { cache := os.Getenv("SQLCCACHE")