mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
ee115dba41
* bundle: cleanup path before setting it as baseDir GetBundleDirectoryLoader will do it again, but we need the cleaned-up `path` to avoid "file:/" parts erroneously making it into the bundle's ModuleFile structs. GetBundleDirectoryLoader is shared with the server, so we'll keep that as-is. * rego: avoid (*Bundle).ParsedModules(..) Using this will prefix a path that is already complete. Using ModuleFile's Path instead, we get the already-resolved path. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>