Skip to content

Commit f826f9d

Browse files
committed
more fixups
1 parent f75056f commit f826f9d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cabal-install/src/Distribution/Client/InLibrary.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ configure
183183
}
184184
(_allConstraints, pkgInfo) <-
185185
Cabal.computePackageInfo cfg lbc1 gpkgDescr compil
186+
-- NB: no need to re-apply "allConstraints", as we already have a
187+
-- finalized package description in hand.
186188

187189
-- Post-configure hooks & per-component configure
188190
lbi1 <- Cabal.configureFinal

cabal-install/tests/UnitTests/Distribution/Client/Configure.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ configureTests =
138138
assertEqual
139139
"local"
140140
(Just ghcFlags)
141-
(Map.lookup "ghc" (getMapMappend (packageConfigProgramArgs projectConfigLocalPackages)))
141+
(filter (/= "-hide-all-packages") <$> --hide-all-packages gets added by default; ignore it for this test
142+
Map.lookup "ghc" (getMapMappend (packageConfigProgramArgs projectConfigLocalPackages)))
142143
]
143144

144145
projectDir :: FilePath

0 commit comments

Comments
 (0)