mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #545] CRLF-smudged clones corrupt built artifacts and fail validation on untouched packages — pin LF via .gitattributes #277
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#277
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Aug 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/545
Originally assigned to: @kolacheee on GitHub.
Windows contributors with the Git-for-Windows default
core.autocrlf=true(set in the SYSTEM gitconfig, so per-repo settings don't help a fresh clone) get CRLF-smudged working copies of this repo, and that has now caused a real shipped defect plus recurring false validation failures:packages/pixelforge/src/20-world.js) sat CRLF on disk: the builtclient.js, the manifest'sbytes/sha256, and the committed zip all described a file 3,280 bytes larger than the LF blob git stores — three things disagreeing inside one commit, on every platform.validate-catalogenforces exactly this invariant but only walkscatalog.packages, andINCOMPLETE_PACKAGE_IDSholds pixelforge out of every catalog, so the check never reached it. Caught and fixed in PR #544 review (commit62d1c6c4).validate-package-locales.mjsandvalidate-catalog.mjsboth fail onbeholderpurely from CRLF-inflated on-disk sizes — a contributor sees red on a package they never touched and learns to distrust the checks.src/*.jsbyte-for-byte, so a CRLF tree silently inflates every builtclient.js(~2% for pixelforge) and poisons the manifest hashes.Suggested fix: a root
.gitattributespinning text files to LF (* text=auto eol=lfplus explicit rules for the binary artifact/asset extensions), which makes checkouts LF regardless of the contributor's autocrlf setting. Optionally a second layer: havevalidate-catalog(or a sibling check) verify source-blob vs on-disk byte equality for all packages including catalog-excluded ones, so the class of bug in (1) cannot ship again even from an unpinned tree.Evidence and exact numbers are in PR #544's review threads (the manifest-consistency finding).
@kolacheee commented on GitHub (Aug 24, 2026):
Claiming this — working it on
fix/545-lf-pinningoffstaging(root.gitattributesLF pin + an all-packages manifest/artifact byte check that covers catalog-excluded ids).