Skip to content

Commit

Permalink
Merge pull request #386 from rtyley/avoid-repeating-version-in-evicti…
Browse files Browse the repository at this point in the history
…on-error

Avoid repeating versions in Eviction error message
  • Loading branch information
eed3si9n authored Sep 19, 2021
2 parents fb33493 + 9786906 commit 54c1ee5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ final class EvictionError private[sbt] (
evictions.foreach({
case (a, scheme) =>
val revs = a.evicteds map { _.module.revision }
val revsStr = if (revs.size <= 1) revs.mkString else "{" + revs.mkString(", ") + "}"
val revsStr =
if (revs.size <= 1) revs.mkString else "{" + revs.distinct.mkString(", ") + "}"
val seen: mutable.Set[ModuleID] = mutable.Set()
val callers: List[String] = (a.evicteds.toList ::: a.winner.toList) flatMap { r =>
val rev = r.module.revision
Expand Down

0 comments on commit 54c1ee5

Please sign in to comment.