From 65b32ef85d77e7d5100b7d8cd05d56fd0961e591 Mon Sep 17 00:00:00 2001 From: quobix Date: Wed, 29 Nov 2023 06:14:46 -0500 Subject: [PATCH] fixed glitch where file references are not autoresolved they should always be autoresolved, remote is permanently set to on. Signed-off-by: quobix --- motor/rule_applicator.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/motor/rule_applicator.go b/motor/rule_applicator.go index 50f3d073..10dddda1 100644 --- a/motor/rule_applicator.go +++ b/motor/rule_applicator.go @@ -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