Skip to content

Conversation

AlexTMjugador
Copy link
Member

@AlexTMjugador AlexTMjugador commented Jul 4, 2025

PR #3193 normalized the line endings of all text files to LF, which is a very positive change overall. However, SQLx migration scripts are sensitive to line ending differences for reasons explained in the diff of the PR, and previous Windows releases of the application were built in environments where these scripts used CRLF line endings, causing misleading migration modification errors such as Error while applying migrations: migration 20240711194701 was previously applied but has been modified when switching to a build that uses migration scripts with LF line endings.

This PR implements the most practical compromise I could come up with to avoid breaking database migrations across the application's wide deployment: restoring the previous default Git behavior on line endings for the affected migration files.

TODO

  • Wait until the GitHub Actions workflow for building the app with this patch finishes, and test that this change had the intended effect (Edit: tested to work as expected)

@AlexTMjugador AlexTMjugador added bug Something isn't working app Relates to Modrinth App labels Jul 4, 2025
@AlexTMjugador AlexTMjugador force-pushed the alex/theseus-migration-checksum-mismatch-fix branch from f2901be to a9a3df1 Compare July 4, 2025 23:37
@AlexTMjugador AlexTMjugador marked this pull request as ready for review July 4, 2025 23:52
@AlexTMjugador AlexTMjugador enabled auto-merge July 4, 2025 23:56
@Prospector Prospector requested a review from Gaming32 July 5, 2025 02:11
@AlexTMjugador AlexTMjugador added this pull request to the merge queue Jul 5, 2025
Merged via the queue into main with commit 0030f35 Jul 5, 2025
4 checks passed
@AlexTMjugador AlexTMjugador deleted the alex/theseus-migration-checksum-mismatch-fix branch July 5, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app Relates to Modrinth App bug Something isn't working

Development

Successfully merging this pull request may close these issues.

3 participants