diff --git a/examples/go/http/http_test.go b/examples/go/http/http_test.go index 640c079..14b3df6 100644 --- a/examples/go/http/http_test.go +++ b/examples/go/http/http_test.go @@ -9,7 +9,6 @@ import ( "github.com/stretchr/testify/assert" "go.wasmcloud.dev/wadge" - _ "go.wasmcloud.dev/wadge/bindings" incominghandler "go.wasmcloud.dev/wadge/examples/go/http/bindings/wasi/http/incoming-handler" "go.wasmcloud.dev/wadge/wadgehttp" ) diff --git a/go.mod b/go.mod index 153f35b..a5e7838 100644 --- a/go.mod +++ b/go.mod @@ -16,4 +16,4 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) -replace go.wasmcloud.dev/wadge v0.2.0 => ./. +replace go.wasmcloud.dev/wadge v0.4.1 => ./. diff --git a/go.work b/go.work index c9f3ac2..a4b2f68 100644 --- a/go.work +++ b/go.work @@ -2,4 +2,4 @@ go 1.23.0 use ./. -replace go.wasmcloud.dev/wadge v0.2.0 => ./. +replace go.wasmcloud.dev/wadge v0.4.1 => ./. diff --git a/tests/go/wasi/wasi_test.go b/tests/go/wasi/wasi_test.go index 266c148..0f249d1 100644 --- a/tests/go/wasi/wasi_test.go +++ b/tests/go/wasi/wasi_test.go @@ -16,7 +16,6 @@ import ( "github.com/stretchr/testify/assert" "go.wasmcloud.dev/wadge" - _ "go.wasmcloud.dev/wadge/bindings" incominghandler "go.wasmcloud.dev/wadge/tests/go/wasi/bindings/wasi/http/incoming-handler" "go.wasmcloud.dev/wadge/wadgehttp" ) diff --git a/wadgehttp/http.go b/wadgehttp/http.go index e5f437d..18b2acb 100644 --- a/wadgehttp/http.go +++ b/wadgehttp/http.go @@ -10,6 +10,7 @@ import ( "unsafe" "github.com/bytecodealliance/wasm-tools-go/cm" + _ "go.wasmcloud.dev/wadge/bindings" "go.wasmcloud.dev/wadge/bindings/wasi/http/types" "go.wasmcloud.dev/wadge/bindings/wasi/io/poll" "go.wasmcloud.dev/wadge/bindings/wasiext/http/ext" @@ -224,7 +225,7 @@ func NewIncomingResponse(resp types.IncomingResponse) (*http.Response, error) { bodyStream.ResourceDrop() futTrailers := types.IncomingBodyFinish(*body) // TODO: Block for trailers, once panic in wasmtime is fixed - //futTrailers.Subscribe().Block() + // futTrailers.Subscribe().Block() trailersOptResResOpt := futTrailers.Get() var trailer http.Header if trailersOptResRes := trailersOptResResOpt.Some(); trailersOptResRes != nil {