Skip to content

Commit 1c557b5

Browse files
committed
fix wasm build
Seems like "wasm" is a tag used by Go itself. Changing to something else fixes the problem.
1 parent e1c7763 commit 1c557b5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

executor/nowasm_executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !wasm
1+
//go:build !wasmtime
22
// This is so that we can build without wasm's dependancies
33

44
package executor

executor/wasm_executor.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//go:build wasm
2-
1+
//go:build wasmtime
32
package executor
43

54
import (
@@ -144,9 +143,9 @@ func (we *WasmExecutor) HandleMessage(ctx context.Context, msg *Message, rf Repl
144143
scrRes.Error = string(b)
145144
}
146145

147-
r.Results.Store(script.Name, scrRes)
146+
r.Results.Store(scr.Name, scrRes)
148147
log.WithFields(fields).Debug("stored result")
149-
}(content)
148+
}(scr)
150149
}
151150
wg.Wait()
152151
log.WithField("subject", msg.Subject).Debugf("finished running %d scripts", len(scripts))

0 commit comments

Comments
 (0)