@@ -14,7 +14,6 @@ import (
1414 "github.com/Masterminds/semver"
1515 "github.com/prequel-dev/preq/internal/pkg/matchz"
1616 "github.com/prequel-dev/preq/internal/pkg/resolve"
17- "github.com/prequel-dev/preq/internal/pkg/rules"
1817 "github.com/prequel-dev/preq/internal/pkg/utils"
1918 "github.com/prequel-dev/preq/internal/pkg/ux"
2019 "github.com/prequel-dev/prequel-compiler/pkg/compiler"
@@ -87,7 +86,7 @@ func compileRuleTree(cf compiler.RuntimeI, tree *parser.TreeT) (compiler.ObjsT,
8786 return nodeObjs , nil
8887}
8988
90- func compileRulePath (cf compiler.RuntimeI , rp rules .RulePathT ) (compiler.ObjsT , * parser.RulesT , error ) {
89+ func compileRulePath (cf compiler.RuntimeI , rp utils .RulePathT ) (compiler.ObjsT , * parser.RulesT , error ) {
9190 var (
9291 rs * parser.RulesT
9392 tree * parser.TreeT
@@ -100,9 +99,9 @@ func compileRulePath(cf compiler.RuntimeI, rp rules.RulePathT) (compiler.ObjsT,
10099 log .Info ().Str ("path" , rp .Path ).Msg ("Parsing rules" )
101100
102101 switch rp .Type {
103- case rules .RuleTypeCre :
102+ case utils .RuleTypeCre :
104103 rdrOpts = append (rdrOpts , utils .WithMultiDoc ())
105- case rules .RuleTypeUser :
104+ case utils .RuleTypeUser :
106105 // Allow empty IDs in user generated content
107106 rdrOpts = append (rdrOpts , utils .WithGenIds ())
108107 parseOpts = append (parseOpts , parser .WithGenIds ())
@@ -196,7 +195,7 @@ func (r *RuntimeT) compileRules(cf compiler.RuntimeI, data []byte) (compiler.Obj
196195
197196}
198197
199- func (r * RuntimeT ) compileRulesPaths (cf compiler.RuntimeI , paths []rules .RulePathT ) (compiler.ObjsT , []* parser.RulesT , error ) {
198+ func (r * RuntimeT ) compileRulesPaths (cf compiler.RuntimeI , paths []utils .RulePathT ) (compiler.ObjsT , []* parser.RulesT , error ) {
200199 var (
201200 nodeObjs = make (compiler.ObjsT , 0 )
202201 allRules = make ([]* parser.RulesT , 0 )
@@ -488,7 +487,7 @@ func (r *RuntimeT) getRuntimeCb(report *ux.ReportT) *runtimeT {
488487 return runtime
489488}
490489
491- func (r * RuntimeT ) CompileRulesPath (rulesPaths []rules .RulePathT , report * ux.ReportT ) (* RuleMatchersT , error ) {
490+ func (r * RuntimeT ) CompileRulesPath (rulesPaths []utils .RulePathT , report * ux.ReportT ) (* RuleMatchersT , error ) {
492491
493492 var (
494493 nodeObjs compiler.ObjsT
@@ -519,7 +518,7 @@ func (r *RuntimeT) CompileRulesPath(rulesPaths []rules.RulePathT, report *ux.Rep
519518 return matchers , nil
520519}
521520
522- func (r * RuntimeT ) LoadRulesPaths (rep * ux.ReportT , rulesPaths []rules .RulePathT ) (* RuleMatchersT , error ) {
521+ func (r * RuntimeT ) LoadRulesPaths (rep * ux.ReportT , rulesPaths []utils .RulePathT ) (* RuleMatchersT , error ) {
523522
524523 var (
525524 ruleMatchers * RuleMatchersT
0 commit comments