Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions call.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,14 @@ func runCall(cmd *cobra.Command, call *callArgs) error {
}

if globalPlugin == nil {
if pluginConfig.EnableWasi {
_, wasiOutput := os.LookupEnv("EXTISM_ENABLE_WASI_OUTPUT")
if ! wasiOutput {
Log("Setting EXTISM_ENABLE_WASI_OUTPUT")
os.Setenv("EXTISM_ENABLE_WASI_OUTPUT", "1")
}
}

Log("Creating plugin")
globalPlugin, err = extism.NewPlugin(ctx, manifest, pluginConfig, []extism.HostFunction{})
if err != nil {
Expand Down
Loading