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
If there's a settings file that you want to capture for up-to-date checks, the mechanism for that has been, and still is, FileSignature.
The problem is that FileSignature does not support roundtrip serialization. The fix for this is the new FileSignature.Promised. The .Promised class supports roundtrip serialization, but it does not support equality. So now a step has two states: RoundtripState and EqualityState.
That is super annoying, but roundtrip serialization means that all our transient tricks for ignoring something for equality don't work anymore.
Another option is to just implement FormatterStep directly. Implement Serializable and equals/hashCode on your own, instead of relying on the equality-based-on-serialization hack that we have used in the past.
If you are submitting a bug, please include the following:
The npm-based steps don't capture their settings files in their state, which makes them too generous in claiming to be up-to-date. This applies to:
ESLintFormatterStep
PrettierFormatterStep
TsFmtFormatterStep
.This bug was introduced in #2135 as part of the effort to make all steps roundtrip-serializable for Gradle.
plugin-gradle 7.0, plugin-maven 3.0
The text was updated successfully, but these errors were encountered: