Skip to content

Commit 3238e87

Browse files
committed
Look up sublibraries also with nonexact deps
Fixes #7270
1 parent f90d541 commit 3238e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cabal/src/Distribution/Simple/Configure.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ selectDependency pkgid internalIndex installedIndex requiredDepsMap
13101310
-- If we know the exact pkg to use, then use it.
13111311
Just pkginstance -> Right pkginstance
13121312
-- Otherwise we just pick an arbitrary instance of the latest version.
1313-
Nothing -> case pickLastIPI $ PackageIndex.lookupDependency installedIndex dep_pkgname vr of
1313+
Nothing -> case pickLastIPI $ PackageIndex.lookupInternalDependency installedIndex dep_pkgname vr lib of
13141314
Nothing -> Left (DependencyNotExists dep_pkgname)
13151315
Just pkg -> Right pkg
13161316
return $ ExternalDependency $ ipiToPreExistingComponent ipi

0 commit comments

Comments
 (0)