Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 150c886

Browse files
authored
fix(rego): skip optional policies in windows (#1529)
1 parent 60539be commit 150c886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/rego/embed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func LoadPoliciesFromDirs(target fs.FS, paths ...string) (map[string]*ast.Module
7979
return nil
8080
}
8181

82-
if strings.HasSuffix(filepath.Dir(filepath.ToSlash(path)), "advanced/optional") {
82+
if strings.HasSuffix(filepath.Dir(filepath.ToSlash(path)), filepath.Join("advanced", "optional")) {
8383
return fs.SkipDir
8484
}
8585

0 commit comments

Comments
 (0)