mirror of https://github.com/sbt/sbt.git
distinct builds in delegates
This commit is contained in:
parent
6bd500bbe2
commit
6bf9d9655b
|
|
@ -166,11 +166,10 @@ object Scope
|
|||
def withGlobalAxis[T](base: ScopeAxis[T]): Seq[ScopeAxis[T]] = if(base.isSelect) base :: Global :: Nil else Global :: Nil
|
||||
def withGlobalScope(base: Scope): Seq[Scope] = if(base == GlobalScope) GlobalScope :: Nil else base :: GlobalScope :: Nil
|
||||
def withRawBuilds(ps: Seq[ScopeAxis[ProjectRef]]): Seq[ScopeAxis[ResolvedReference]] =
|
||||
ps ++ (ps flatMap rawBuild) :+ Global
|
||||
ps ++ (ps flatMap rawBuild).distinct :+ Global
|
||||
|
||||
def rawBuild(ps: ScopeAxis[ProjectRef]): Seq[ScopeAxis[BuildRef]] = ps match { case Select(ref) => Select(BuildRef(ref.build)) :: Nil; case _ => Nil }
|
||||
|
||||
|
||||
def delegates(
|
||||
refs: Seq[(ProjectRef, ResolvedProject)],
|
||||
projectInherit: ProjectRef => Seq[ProjectRef],
|
||||
|
|
|
|||
Loading…
Reference in New Issue