Skip to content

Commit

Permalink
Same signature both for Unix and Windows (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinMontmirail authored Dec 30, 2023
1 parent 8efbab5 commit 038d510
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imports/builder_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import (
"fmt"
"runtime"

"github.com/stealthrocket/wasi-go"
"github.com/tetratelabs/wazero"
)

func (b *Builder) Instantiate(ctx context.Context, _ wazero.Runtime) (context.Context, error) {
return ctx, fmt.Errorf("wasi-go is not available on GOOS=%s", runtime.GOOS)
func (b *Builder) Instantiate(ctx context.Context, _ wazero.Runtime) (context.Context, wasi.System, error) {
return ctx, nil, fmt.Errorf("wasi-go is not available on GOOS=%s", runtime.GOOS)
}

0 comments on commit 038d510

Please sign in to comment.