spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Changes to line ending rules in 6.6.0?

Open charleskorn opened this issue 3 years ago • 2 comments

I've just tried to upgrade a project that was using version 6.5.2 of the Gradle plugin to 6.6.0 or 6.6.1.

This works fine everywhere except for the Windows CI build that I run on GitHub Actions. This has started failing, and Spotless wants to replace the Unix-style line endings with Windows-style line endings in one file (example).

The same thing works fine on a local Windows machine.

Have there been any changes related to this in version 6.6? Or is this a bug?

charleskorn avatar May 24 '22 09:05 charleskorn

I've added a workaround that fixes this for my use case, so I'm going to go ahead and close this.

charleskorn avatar Jul 07 '22 22:07 charleskorn

Thanks for reporting! Very bizarre that this fixes it:

https://github.com/batect/batect/pull/1254/commits/0df17d376ee50e3e28f120c7245bd1e10fd6dfcb

I'm gonna keep this open since it's definitely a bug with a nice reproducible testcase.

nedtwigg avatar Jul 08 '22 03:07 nedtwigg