You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking inside of the optimized bundle, the p.rego file does indeed look broken wrt metadata:
p.rego (inside bundle.tar.gz)
package p
a :=1# METADATA# description: a# entrypoint: true# METADATA# description: b# entrypoint: true
The b and c rules have been moved to different files under the optimized directory, but since the metadata annotations haven't moved with them, they'll no longer be scoped to those rules.
Interestingly, running opa eval -O=1 --bundle bundle/ — i.e. on the directory directly (without passing opa build) does not produce this error, so presumably it does not do the same optimization?
cwd
. └── bundle └── p.rego
bundle/p.rego
Looking inside of the optimized bundle, the
p.rego
file does indeed look broken wrt metadata:p.rego (inside bundle.tar.gz)
The
b
andc
rules have been moved to different files under theoptimized
directory, but since the metadata annotations haven't moved with them, they'll no longer be scoped to those rules.Interestingly, running
opa eval -O=1 --bundle bundle/
— i.e. on the directory directly (without passingopa build
) does not produce this error, so presumably it does not do the same optimization?Reported to me by @nevumx
The text was updated successfully, but these errors were encountered: