Checksum Mismatch between Different Environments
Question
When using Atlas on my macOS
, I can run atlas migrate apply
without any issues, and it applies the migrations successfully.
But when running in CI on linux
, I get the following error: Error: checksum mismatch
Answer
This issue is likely due to differences in line endings between operating systems. macOS
uses LF
(Line Feed) for line endings,
while Windows
uses CRLF
(Carriage Return + Line Feed). When you run Atlas commands in a Docker container,
it may be using a different line ending format than what your migrations were created with.