build: Replace gen-opa-wasm.sh with generic go runner

There is nothing wasm-specific about the script and it will need to be
reused for feature generation.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
This commit is contained in:
Torin Sandall
2020-07-21 12:46:51 -04:00
parent dd683027c0
commit ea5f975ff9
3 changed files with 6 additions and 6 deletions
-5
View File
@@ -1,5 +0,0 @@
#!/bin/sh
set -e
GOFLAGS=-mod=vendor GO111MODULE=on GOOS="" GOARCH="" go run $@
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
GOFLAGS=-mod=vendor GO111MODULE=on GOOS="" GOARCH="" go run $@
+1 -1
View File
@@ -19,4 +19,4 @@ func main() {
}
// WASM base binary generation:
//go:generate build/gen-opa-wasm.sh internal/cmd/genopawasm/main.go -o internal/compiler/wasm/opa/opa.go internal/compiler/wasm/opa/opa.wasm
//go:generate build/gen-run-go.sh internal/cmd/genopawasm/main.go -o internal/compiler/wasm/opa/opa.go internal/compiler/wasm/opa/opa.wasm