CBL-Mariner/SPECS/opa/0001-Warn-users-about-WebAs...

27 строки
900 B
Diff

From adb2d33227a1eaa89ad207a67b59c628b2471171 Mon Sep 17 00:00:00 2001
From: Olivier Lemasle <o.lemasle@gmail.com>
Date: Sat, 29 May 2021 11:05:22 +0200
Subject: [PATCH] Warn users about WebAssembly missing
---
internal/rego/opa/nop.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/internal/rego/opa/nop.go b/internal/rego/opa/nop.go
index 4241a830..4727ec44 100644
--- a/internal/rego/opa/nop.go
+++ b/internal/rego/opa/nop.go
@@ -19,6 +19,9 @@ type OPA struct {
// New unimplemented.
func New() *OPA {
fmt.Fprintf(os.Stderr, `WebAssembly runtime not supported in this build.
+
+This Fedora package does not support WebAssembly yet.
+See https://bugzilla.redhat.com/1965682
----------------------------------------------------------------------------------
Please download an OPA binary with Wasm enabled from
https://www.openpolicyagent.org/docs/latest/#running-opa
--
2.31.1