mirror of https://github.com/sbt/sbt.git
Ignore the build ref case
This commit is contained in:
parent
d1993bcabb
commit
1cfe14a877
|
|
@ -99,15 +99,18 @@ object Delegates extends Properties {
|
||||||
(key, ds) =>
|
(key, ds) =>
|
||||||
key.config match {
|
key.config match {
|
||||||
case Zero => success
|
case Zero => success
|
||||||
case Select(config) if key.project.isSelect =>
|
case Select(config) =>
|
||||||
val p = key.project.toOption.get
|
key.project match {
|
||||||
val r = keys.env.resolve(p)
|
case Select(p @ ProjectRef(_, _)) =>
|
||||||
keys.env.inheritConfig(r, config).headOption.fold(success) { parent =>
|
val r = keys.env.resolve(p)
|
||||||
val idxKey = ds.indexOf(key)
|
keys.env.inheritConfig(r, config).headOption.fold(success) { parent =>
|
||||||
val a = key.copy(config = Select(parent))
|
val idxKey = ds.indexOf(key)
|
||||||
val idxA = ds.indexOf(a)
|
val a = key.copy(config = Select(parent))
|
||||||
assert(idxKey < idxA)
|
val idxA = ds.indexOf(a)
|
||||||
.log(s"idxKey = $idxKey; a = $a; idxA = $idxA")
|
assert(idxKey < idxA)
|
||||||
|
.log(s"idxKey = $idxKey; a = $a; idxA = $idxA")
|
||||||
|
}
|
||||||
|
case _ => success
|
||||||
}
|
}
|
||||||
case _ => success
|
case _ => success
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue