mirror of https://github.com/sbt/sbt.git
task execution engine: fix addition of new tasks
dependencies of a task being added were filtered to remove already added ones all at once however, as each new dependency is added, the 'new' state of tasks could change this fix checks and adds dependencies one at a time
This commit is contained in:
parent
47e9428144
commit
da0444e5a3
|
|
@ -161,9 +161,11 @@ final class Execute[A[_] <: AnyRef](checkCycles: Boolean)(implicit view: NodeVie
|
|||
else
|
||||
{
|
||||
forward(node) = IDSet(active)
|
||||
val newD = active filter isNew
|
||||
newD foreach { x => addNew(x) }
|
||||
active foreach { addReverse(_, node) }
|
||||
for(a <- active)
|
||||
{
|
||||
addChecked(a)
|
||||
addReverse(a, node)
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
|
|
|
|||
Loading…
Reference in New Issue