Skip to content

Commit

Permalink
chore: add comment about prod deps
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Dec 18, 2024
1 parent cc079a7 commit 2a4674a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/dependency/parser/python/uv/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ func (p *Parser) Parse(r xio.ReadSeekerAt) ([]ftypes.Package, []ftypes.Dependenc

packages := lock.packages()
directDeps := lock.directDeps(rootPackage)

// Since each lockfile contains a root package with a list of direct dependencies,
// we can identify all production dependencies by traversing the dependency graph
// and collecting all the dependencies that are reachable from the root.
prodDeps := prodDeps(rootPackage, packages)

var (
Expand Down

0 comments on commit 2a4674a

Please sign in to comment.