Merge pull request #2260 from Molecule-AI/chore/snapshot-lf-attribute

chore(gitattributes): pin LF on snapshot golden files
This commit is contained in:
hongmingwang-moleculeai 2026-04-29 04:30:15 +00:00 committed by GitHub
commit 5b2132b828
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
.gitattributes vendored
View File

@ -13,3 +13,11 @@ workspace/entrypoint.sh text eol=lf
# but keep LF for consistency across platforms.
Dockerfile text eol=lf
*.dockerfile text eol=lf
# Snapshot golden files — workspace/tests/snapshots/*.txt is consumed by
# byte-exact comparisons in test_platform_tools.py. A Windows contributor
# with auto-CRLF=true would otherwise convert \n → \r\n on checkout, the
# snapshot tests would fail mysteriously locally / pass in CI (or vice
# versa), and the regen instructions in the test-file header would
# produce LF files that disagree with the working-copy CRLF versions.
workspace/tests/snapshots/*.txt text eol=lf