Before using the Manetu PolicyEngine, ensure you have the appropriate tools installed for your use case.
:::tip Most Users Don't Need Go
If you install mpe via Homebrew or download a pre-built binary, you don't need Go installed. Go is only required if you're building from source or using the embedded Go library.
:::
OPA is required for the mpe lint command to validate Rego syntax.
Installation:
brew install opaVerify installation:
opa version
# Version: 0.60.0
If you're building mpe from source or using the embedded Go library, you'll also need:
Go 1.21 or later is required.
Installation:
brew install goVerify installation:
go version
# go version go1.21.0 darwin/arm64
Make is useful for running project tasks, but not strictly required.
xcode-select --installapt-get install make or yum install makeFor development on the PolicyEngine itself:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install honnef.co/go/tools/cmd/staticcheck@latest
Run the commands relevant to your setup:
# All users - Check OPA
opa version
# Go developers - Check Go
go version
# Optional - Check Make
make --version
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |