Fix build only linux and darwin support wazergo

This commit is contained in:
Julien Salleyron 2024-06-28 10:16:03 +02:00 committed by GitHub
parent b1b4e6b918
commit fe4cca6e9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

18
pkg/plugins/wasip_mock.go Normal file
View file

@ -0,0 +1,18 @@
//go:build !linux && !darwin
package plugins
import (
"context"
"github.com/tetratelabs/wazero"
)
type ContextApplier func(ctx context.Context) context.Context
// InstantiateHost instantiates the Host module.
func InstantiateHost(ctx context.Context, runtime wazero.Runtime, mod wazero.CompiledModule, settings Settings) (ContextApplier, error) {
return func(ctx context.Context) context.Context {
return ctx
}, nil
}