mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
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:
@@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
GOFLAGS=-mod=vendor GO111MODULE=on GOOS="" GOARCH="" go run $@
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
GOFLAGS=-mod=vendor GO111MODULE=on GOOS="" GOARCH="" go run $@
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user