Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoikin committed Aug 23, 2024
1 parent c727c4a commit fb35e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Spago/Command/Fetch.purs
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ getWorkspacePackageDeps :: WorkspacePackage -> ByEnv Dependencies
getWorkspacePackageDeps pkg =
{ core: pkg.package.dependencies
, test: fromMaybe (Dependencies Map.empty) $
if pkg.hasTests then Nothing else _.dependencies <$> pkg.package.test
if pkg.hasTests then _.dependencies <$> pkg.package.test else Nothing
}

type TransitiveDepsResult =
Expand Down Expand Up @@ -572,7 +572,7 @@ getTransitiveDeps workspacePackage = do
<$> forEnv "core" depsRanges.core
<*> forEnv "test" depsRanges.test

PackageSetBuild _info set ->
PackageSetBuild _info set -> do
depsRanges # onEachEnvM \depsRanges' ->
getTransitiveDepsFromPackageSet set $ (Array.fromFoldable $ Map.keys depsRanges')

Expand Down

0 comments on commit fb35e8e

Please sign in to comment.