mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
build: Fix wrong windows bundle tar files path separator (#5478)
Fix #5473. Signed-off-by: shm12 <shm.bia@gmail.com>
This commit is contained in:
+4
-2
@@ -12,6 +12,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
@@ -453,9 +454,10 @@ func (c *Compiler) initBundle() error {
|
||||
sort.Strings(modules)
|
||||
|
||||
for _, module := range modules {
|
||||
path := filepath.ToSlash(load.Files.Modules[module].Name)
|
||||
result.Modules = append(result.Modules, bundle.ModuleFile{
|
||||
URL: load.Files.Modules[module].Name,
|
||||
Path: load.Files.Modules[module].Name,
|
||||
URL: path,
|
||||
Path: path,
|
||||
Parsed: load.Files.Modules[module].Parsed,
|
||||
Raw: load.Files.Modules[module].Raw,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user