Skip to content

Commit 9b32067

Browse files
committed
fix: Mark all Pipfile.lock dependencies as direct
- 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
1 parent d6dea91 commit 9b32067

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Strategy/Python/Pipenv.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ buildNodes PipfileLock{..} = do
236236
m ()
237237
addWithEnv env sourcesMap depName dep = do
238238
let pkg = PipPkg depName (Text.drop 2 <$> fileDepVersion dep)
239-
-- Add the package to the graph (but don't mark as direct)
240-
edge pkg pkg -- Add the node to the graph without marking it as direct
239+
-- Add the package to the graph and mark as direct
240+
direct pkg
241241
label pkg (PipEnvironment env)
242242

243243
-- add label for source when it exists

0 commit comments

Comments
 (0)