We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77c4e53 commit 47c6786Copy full SHA for 47c6786
1 file changed
build.go
@@ -82,7 +82,18 @@ const (
82
)
83
84
func (v RegoVersion) ToAstRegoVersion() ast.RegoVersion {
85
- return ast.RegoVersionFromInt(int(v))
+ switch v {
86
+ case RegoUndefined:
87
+ return ast.RegoUndefined
88
+ case RegoV0:
89
+ return ast.RegoV0
90
+ case RegoV0CompatV1:
91
+ return ast.RegoV0CompatV1
92
+ case RegoV1:
93
+ return ast.RegoV1
94
+ default:
95
96
+ }
97
}
98
99
func (v RegoVersion) String() string {
0 commit comments