Skip to content

Commit 6249e02

Browse files
committed
PD check: do not treat library names as package names
Fixes #9122
1 parent 1723d22 commit 6249e02

File tree

1 file changed

+1
-6
lines changed
  • Cabal/src/Distribution/PackageDescription

1 file changed

+1
-6
lines changed

Cabal/src/Distribution/PackageDescription/Check.hs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,18 +1352,13 @@ checkFields pkg =
13521352
, isNoVersion vr
13531353
]
13541354

1355-
internalLibraries =
1356-
map
1357-
(maybe (packageName pkg) unqualComponentNameToPackageName . libraryNameString . libName)
1358-
(allLibraries pkg)
1359-
13601355
internalExecutables = map exeName $ executables pkg
13611356

13621357
internalLibDeps =
13631358
[ dep
13641359
| bi <- allBuildInfo pkg
13651360
, dep@(Dependency name _ _) <- targetBuildDepends bi
1366-
, name `elem` internalLibraries
1361+
, name == packageName pkg
13671362
]
13681363

13691364
internalExeDeps =

0 commit comments

Comments
 (0)