We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1094c25 commit 34ecae1Copy full SHA for 34ecae1
src/Stack/Build/Installed.hs
@@ -172,8 +172,15 @@ isAllowed mpcache sourceMap mloc dp
172
where
173
toInclude =
174
case Map.lookup name sourceMap of
175
- -- The sourceMap has nothing to say about this package, so we can use it
176
- Nothing -> True
+ Nothing ->
+ case mloc of
177
+ -- The sourceMap has nothing to say about this global
178
+ -- package, so we can use it
179
+ Nothing -> True
180
+ -- For non-global packages, don't include unknown packages.
181
+ -- See:
182
+ -- https://github.com/commercialhaskell/stack/issues/292
183
+ Just _ -> False
184
185
Just pii ->
186
version == piiVersion pii -- only accept the desired version
0 commit comments