Skip to content

Commit

Permalink
build(deps): Upgrade wasmtime-go from 13.0.0 to 14.0.0 (#2900)
Browse files Browse the repository at this point in the history
* build(deps): Upgrade wasmtime-go from 13.0.0 to 14.0.0

This upgrade should fix the broken Windows build.

* Actually upgrade

* Update ci.yml
  • Loading branch information
kyleconroy committed Oct 23, 2023
1 parent df4c05b commit b891a04
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# wasmtime can't be built with 12.2
- run: choco install mingw --version 11.2.0.07112021 --allow-downgrade
- uses: actions/setup-go@v4
with:
go-version: '1.21.3'
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230321174746-8dcc6526cfb1
github.com/bytecodealliance/wasmtime-go/v13 v13.0.0
github.com/bytecodealliance/wasmtime-go/v14 v14.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.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230321174746-8dcc6526cfb1/g
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o=
github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/bytecodealliance/wasmtime-go/v13 v13.0.0 h1:o2PsUgSu6vMKr5S0+mz8EL3mZGQ0M8gHwS8/R0wY/wY=
github.com/bytecodealliance/wasmtime-go/v13 v13.0.0/go.mod h1:KmsZLdjjzNH/E5wbfoRehqP70tHzKlfNOi730VCAR4E=
github.com/bytecodealliance/wasmtime-go/v14 v14.0.0 h1:ur7S3P+PAeJmgllhSrKnGQOAmmtUbLQxb/nw2NZiaEM=
github.com/bytecodealliance/wasmtime-go/v14 v14.0.0/go.mod h1:tqOVEUjnXY6aGpSfM9qdVRR6G//Yc513fFYUdzZb/DY=
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=
Expand Down
4 changes: 2 additions & 2 deletions internal/ext/wasm/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"runtime/trace"
"strings"

wasmtime "github.com/bytecodealliance/wasmtime-go/v13"
wasmtime "github.com/bytecodealliance/wasmtime-go/v14"
"golang.org/x/sync/singleflight"

"github.com/sqlc-dev/sqlc/internal/cache"
Expand All @@ -26,7 +26,7 @@ import (
)

// This version must be updated whenever the wasmtime-go dependency is updated
const wasmtimeVersion = `v13.0.0`
const wasmtimeVersion = `v14.0.0`

func cacheDir() (string, error) {
cache := os.Getenv("SQLCCACHE")
Expand Down

0 comments on commit b891a04

Please sign in to comment.