Skip to content

Commit 77ef3ec

Browse files
committed
fix lint
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 60642c9 commit 77ef3ec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/policies/engine/rego/rego.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/chainloop-dev/chainloop/pkg/policies/engine"
2525
"github.com/open-policy-agent/opa/ast"
2626
"github.com/open-policy-agent/opa/rego"
27-
"github.com/open-policy-agent/opa/topdown/print"
27+
"github.com/open-policy-agent/opa/v1/topdown/print"
2828
"golang.org/x/exp/maps"
2929
)
3030

@@ -125,9 +125,9 @@ var builtinFuncNotAllowed = []*ast.Builtin{
125125

126126
// Implements the OPA print.Hook interface to capture and output
127127
// print statements from Rego policies during evaluation.
128-
type printHook struct{}
128+
type regoOutputHook struct{}
129129

130-
func (p *printHook) Print(ctx print.Context, msg string) error {
130+
func (p *regoOutputHook) Print(_ print.Context, msg string) error {
131131
fmt.Println(msg)
132132
return nil
133133
}
@@ -182,7 +182,7 @@ func (r *Engine) Verify(ctx context.Context, policy *engine.Policy, input []byte
182182
if r.enablePrint {
183183
options = append(options,
184184
rego.EnablePrintStatements(true),
185-
rego.PrintHook(&printHook{}),
185+
rego.PrintHook(&regoOutputHook{}),
186186
)
187187
}
188188

0 commit comments

Comments
 (0)