Skip to content

Commit

Permalink
fix: Mark all Pipfile.lock dependencies as direct
Browse files Browse the repository at this point in the history
- Remove self-edges and isDirect parameter
- Mark all dependencies from Pipfile.lock as direct to match expected test behavior
- Clean up code and improve comments
  • Loading branch information
ryanlink committed Feb 7, 2025
1 parent d6dea91 commit 9b32067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Strategy/Python/Pipenv.hs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ buildNodes PipfileLock{..} = do
m ()
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)
edge pkg pkg -- Add the node to the graph without marking it as direct
-- Add the package to the graph and mark as direct
direct pkg
label pkg (PipEnvironment env)

-- add label for source when it exists
Expand Down

0 comments on commit 9b32067

Please sign in to comment.