Skip to content

Commit

Permalink
fix: Use edge instead of addNode for graph nodes
Browse files Browse the repository at this point in the history
- Remove non-existent addNode import
- Use edge pkg pkg to add nodes to graph without marking as direct
  • Loading branch information
ryanlink committed Feb 7, 2025
1 parent a4605f8 commit d6dea91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Strategy/Python/Pipenv.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import Discovery.Walk (
import Effect.Exec (AllowErr (Never), Command (..), Exec, execJson)
import Effect.Grapher (
LabeledGrapher,
addNode,
direct,
edge,
label,
Expand Down Expand Up @@ -238,7 +237,7 @@ buildNodes PipfileLock{..} = do
addWithEnv env sourcesMap depName dep = do
let pkg = PipPkg depName (Text.drop 2 <$> fileDepVersion dep)
-- Add the package to the graph (but don't mark as direct)
addNode pkg
edge pkg pkg -- Add the node to the graph without marking it as direct
label pkg (PipEnvironment env)

-- add label for source when it exists
Expand Down

0 comments on commit d6dea91

Please sign in to comment.