Skip to content

Commit 5f2f9a4

Browse files
committed
fix: dep gav join path
1 parent 5dff189 commit 5f2f9a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opensca/model/dep.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package model
22

33
import (
44
"fmt"
5+
"path/filepath"
56
"sort"
67
"strings"
78
)
@@ -181,7 +182,7 @@ func (dep *DepGraph) Build(deep bool, lan Language) {
181182
n.Path = p.Path
182183
}
183184
if n.Name != "" {
184-
n.Path += n.Index()
185+
n.Path = filepath.Join(n.Path, n.Index())
185186
}
186187
// 补全语言
187188
if n.Language == Lan_None {

0 commit comments

Comments
 (0)