ci: add depguard (#6963)

Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Teppei Fukuda
2024-06-20 06:48:08 +04:00
committed by GitHub
parent dfe757e37a
commit 983ac15f22
73 changed files with 154 additions and 119 deletions

View File

@@ -3,6 +3,7 @@ package npm
import (
"fmt"
"io"
"maps"
"path"
"slices"
"sort"
@@ -10,7 +11,6 @@ import (
"github.com/liamg/jfather"
"github.com/samber/lo"
"golang.org/x/exp/maps"
"golang.org/x/xerrors"
"github.com/aquasecurity/trivy/pkg/dependency"
@@ -186,7 +186,7 @@ func (p *Parser) parseV2(packages map[string]Package) ([]ftypes.Package, []ftype
}
return maps.Values(pkgs), deps
return lo.Values(pkgs), deps
}
// for local package npm uses links. e.g.: