From 73af19f3f5d2605f202017ea84d6e4240a3b15df Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Tue, 16 Jan 2024 13:45:35 +0600 Subject: [PATCH] fix path to optional rules --- pkg/rego/embed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rego/embed.go b/pkg/rego/embed.go index d6aa69ded..3a3076934 100644 --- a/pkg/rego/embed.go +++ b/pkg/rego/embed.go @@ -79,7 +79,7 @@ func LoadPoliciesFromDirs(target fs.FS, paths ...string) (map[string]*ast.Module return nil } - if strings.HasSuffix(filepath.Dir(filepath.ToSlash(path)), "policies/advanced/optional") { + if strings.HasSuffix(filepath.Dir(filepath.ToSlash(path)), "advanced/optional") { return fs.SkipDir }