From 9b3206717d1c2aa2e188181213272970a776220d Mon Sep 17 00:00:00 2001 From: ryanlink Date: Fri, 7 Feb 2025 17:02:59 -0600 Subject: [PATCH] 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 --- src/Strategy/Python/Pipenv.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Strategy/Python/Pipenv.hs b/src/Strategy/Python/Pipenv.hs index f88c875d0..553f48961 100644 --- a/src/Strategy/Python/Pipenv.hs +++ b/src/Strategy/Python/Pipenv.hs @@ -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