mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
f71dc2b209
This commit updates the resolver package to make the wasmer dependency conditional at build-time. If CGO is enabled then the wasmer dependency will be included. If CGO is not enabled, the wasmer dependency will be excluded and the OPA binary will not be able to run wasm-compiled policies. This allows us to continue building statically linked OPA executables that can be distributed and used. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
11 lines
305 B
Go
11 lines
305 B
Go
// Copyright 2020 The OPA Authors. All rights reserved.
|
|
// Use of this source code is governed by an Apache2
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build cgo
|
|
|
|
package version
|
|
|
|
// WasmRuntimeAvailable indicates if a wasm runtime is available in this OPA.
|
|
const WasmRuntimeAvailable = true
|