From 02dd3ca7e41581c9d5d62c6c545f2323fbde05b6 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Tue, 24 Oct 2023 16:35:52 +0900 Subject: [PATCH] Update nottinygc (#240) --- go.mod | 2 +- go.sum | 4 ++-- init_tinygo.go | 5 ----- magefiles/magefile.go | 1 + 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index 6617097..d28510c 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/stretchr/testify v1.8.0 github.com/tetratelabs/proxy-wasm-go-sdk v0.22.0 github.com/tidwall/gjson v1.17.0 - github.com/wasilibs/nottinygc v0.6.0 + github.com/wasilibs/nottinygc v0.7.0 ) require ( diff --git a/go.sum b/go.sum index d9cb995..a497a64 100644 --- a/go.sum +++ b/go.sum @@ -42,8 +42,8 @@ github.com/wasilibs/go-libinjection v0.4.0 h1:dr1Y/kM/gmoA7eSfdf+CvCcmzwsz2jVYjN github.com/wasilibs/go-libinjection v0.4.0/go.mod h1:zD7fNXKSaTKoSTmrfuP9Gc16alNEgwkZaHIeDDk3WWM= github.com/wasilibs/go-re2 v1.4.0 h1:Jp6BM8G/zajgY1BCQUm3i7oGMdR1gA5EBv87wGd2ysc= github.com/wasilibs/go-re2 v1.4.0/go.mod h1:hLzlKjEgON+17hWjikLx8hJBkikyjQH/lsqCy9t6tIY= -github.com/wasilibs/nottinygc v0.6.0 h1:RGfTXftUqTWXKGguB4DIxJX9xrxfHT0HYkWdgACwTWU= -github.com/wasilibs/nottinygc v0.6.0/go.mod h1:oDcIotskuYNMpqMF23l7Z8uzD4TC0WXHK8jetlB3HIo= +github.com/wasilibs/nottinygc v0.7.0 h1:x8PiLXMHiSx8v4MgyL8T4LEp0FqrPtqZDsveI9xiY3M= +github.com/wasilibs/nottinygc v0.7.0/go.mod h1:oDcIotskuYNMpqMF23l7Z8uzD4TC0WXHK8jetlB3HIo= golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= diff --git a/init_tinygo.go b/init_tinygo.go index 11fb7e9..811d415 100644 --- a/init_tinygo.go +++ b/init_tinygo.go @@ -17,11 +17,6 @@ import ( // names and signatures of wasi-libc, used by TinyGo, not WASI ABI. Review these exports when either // the minimum supported version of Envoy changes or the maximum version of TinyGo. -//export sched_yield -func sched_yield() int32 { - return 0 -} - // fdopendir is re-exported to avoid TinyGo 0.28's import of wasi_snapshot_preview1.fd_readdir. // //export fdopendir diff --git a/magefiles/magefile.go b/magefiles/magefile.go index d637af2..b49312f 100644 --- a/magefiles/magefile.go +++ b/magefiles/magefile.go @@ -189,6 +189,7 @@ func Build() error { buildTags := []string{ "custommalloc", // https://github.com/wasilibs/nottinygc#usage + "nottinygc_envoy", // https://github.com/wasilibs/nottinygc#using-with-envoy "no_fs_access", // https://github.com/corazawaf/coraza#build-tags "memoize_builders", // https://github.com/corazawaf/coraza#build-tags }