You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand evicted command prints binary compatible conflict as [info] level and binary incompatible conflict as [warn] because binary compatible conflict is no problem in many case.
However, if there are only binary compatible conflicts Eviction warning summary shows in [warn] level in contrast to evicted command prints only in [info] level.
Solution
I figured out some solutions.
1. Eviction warning sumary shows only there are binary incompatible conflicts
Summary
Eviction warning summary shows in [warn] log level even with binary compatible conflicts.
Detail
Eviction warning summary is:
This is introduced in sbt 1.2.0:
My test
I tested update and evicted command in sbt 1.1.6 and 1.2.8.
source code to reproduce: https://github.com/bigwheel/sbt-warn-eviction-summary-inconsistency-behavior
Result:
shows in update command
Problem
I understand evicted command prints binary compatible conflict as [info] level and binary incompatible conflict as [warn] because binary compatible conflict is no problem in many case.
However, if there are only binary compatible conflicts Eviction warning summary shows in [warn] level in contrast to evicted command prints only in [info] level.
Solution
I figured out some solutions.
1. Eviction warning sumary shows only there are binary incompatible conflicts
https://github.com/sbt/librarymanagement/blob/96a3293c/core/src/main/scala/sbt/librarymanagement/EvictionWarning.scala#L317
to
I think this is best fix.
2. Eviction warning sumary with info level
This is not easy fix because it seems like we cannot select log level in there.
3. Change default EvictionWarningOptions from summary to empty
Easy fix.
Conclusion
Please tell me how to fix this.
After that, I will create Pull Request for it.
Related to
scala - addSbtPlugin(...) cause eviction warning but 'evicted' command shows nothing - Stack Overflow
The text was updated successfully, but these errors were encountered: