Skip to content

Commit

Permalink
fixed glitch where file references are not autoresolved
Browse files Browse the repository at this point in the history
they should always be autoresolved, remote is permanently set to on.

Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Nov 29, 2023
1 parent dc39c62 commit 65b32ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions motor/rule_applicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,12 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult {
}

if execution.AllowLookup {
if indexConfig.BasePath != "" {
indexConfig.AllowFileLookup = true
indexConfigUnresolved.AllowFileLookup = true
if indexConfig.BasePath == "" {
indexConfig.BasePath = "."
docConfig.BasePath = "."
}
indexConfig.AllowFileLookup = true
indexConfigUnresolved.AllowFileLookup = true
indexConfig.AllowRemoteLookup = true
indexConfigUnresolved.AllowRemoteLookup = true
docConfig.AllowRemoteReferences = true
Expand Down

0 comments on commit 65b32ef

Please sign in to comment.