tfausak / cabal-gild

:crown: Format Haskell package descriptions.
https://hackage.haskell.org/package/cabal-gild
MIT License
49 stars 5 forks source link

Consider CRLF input as formatted when in check mode #12

Closed tfausak closed 9 months ago

tfausak commented 9 months ago

Although I want to encourage others to use cabal-gild-setup-action, in this repo I should be testing against the actual cabal-gild executable that was just built. Doing so will make it possible for me to change the output format and still have the tests pass, for example.

I expect this to fail initially because --mode check doesn't quite work on Windows. The problem is that the input file has CRLF line endings but the output file has LF line endings. I was aware of this before (see 3023fc096154885300542c86f000cec9fc12efcb) but chose to ignore it until now.

tfausak commented 9 months ago

I'm not sure how to proceed here. I have several options: