Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
309a012c
Commit
309a012c
authored
Jul 09, 2016
by
Edward Z. Yang
Browse files
Don't include package in the transitive dependency list.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
3b2d82ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/InstallPlan.hs
View file @
309a012c
...
...
@@ -404,11 +404,14 @@ failed pkgid buildResult buildResult' plan = assert (invariant plan') plan'
$
packagesThatDependOn
plan
pkgid
]
-- | Lookup the reachable packages in the reverse dependency graph.
-- Does NOT include the package for @pkgid@!
--
packagesThatDependOn
::
GenericInstallPlan
ipkg
srcpkg
iresult
ifailure
packagesThatDependOn
::
(
HasUnitId
ipkg
,
HasUnitId
srcpkg
)
=>
GenericInstallPlan
ipkg
srcpkg
iresult
ifailure
->
UnitId
->
[
GenericPlanPackage
ipkg
srcpkg
iresult
ifailure
]
packagesThatDependOn
plan
pkgid
=
case
Graph
.
revClosure
(
planIndex
plan
)
[
pkgid
]
of
packagesThatDependOn
plan
pkgid
=
filter
((
/=
pkgid
)
.
installedUnitId
)
$
case
Graph
.
revClosure
(
planIndex
plan
)
[
pkgid
]
of
Nothing
->
[]
Just
r
->
r
...
...
cabal-install/tests/IntegrationTests2/regression/3324/q/q.cabal
View file @
309a012c
...
...
@@ -7,4 +7,3 @@ library
exposed-modules: Q
build-depends: base
-- missing a dep on p here, so expect failure initially
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment