Skip to content

Conversation

ffortier
Copy link
Contributor

Unlike opa_eval_binary that can only output to stdout, this variant is designed to output to a file that can be used in the build by other targets.

opa_eval(
    name = "check_bob_json",
    out = "bob.json",
    input = '{"name":"bob"}',
    query = "data.main.allow",
    deps = [":simple"],
)

@ffortier ffortier merged commit deb7971 into main Jan 15, 2024
@ffortier ffortier deleted the opa_eval branch February 22, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant