foundry-rs / compilers

Utilities for working with native solc and compiling projects.
Apache License 2.0
71 stars 41 forks source link

fix: replace line endings on Windows to enforce deterministic metadata #108

Closed klkvr closed 5 months ago

klkvr commented 5 months ago

I'm writing tests for https://github.com/foundry-rs/foundry/pull/7711 which are hardcoding CREATE2 library deployment addreses and they are currently failing on Windows probably because \r\n line endings which are causing metadata differences.

This PR tries to fix this by replacing such endings with \n