Skip to content

Commit

Permalink
Merge pull request #617 from eed3si9n/wip/same-api
Browse files Browse the repository at this point in the history
ignore non-matching extra hash for classes
  • Loading branch information
jvican authored Nov 29, 2018
2 parents 4734555 + e371604 commit 9bef954
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ private[inc] class IncrementalNameHashingCommon(
if (isATrait && isBTrait) {
Some(TraitPrivateMembersModified(className))
} else {
// As we don't cover more cases here, we protect ourselves from a potential programming error
sys.error(
s"""A fatal error happened in `SameAPI`: different extra api hashes for no traits!
// if the extra hash does not match up, but the API is "same" we can ignore it.
// see also https://github.com/sbt/sbt/issues/4441
debug(s"""different extra api hashes for non-traits:
| `${a.name}`: ${a.extraHash()}
| `${b.name}`: ${b.extraHash()}
""".stripMargin
)
""".stripMargin)
None
}
}
} else {
Expand Down

0 comments on commit 9bef954

Please sign in to comment.