chore: pin perseus.py and shell scripts to LF via .gitattributes - #687
Merged
Conversation
perseus.py runs directly via its `#!/usr/bin/env python3` shebang. When checked out with CRLF (Windows core.autocrlf=true), the Linux kernel reads the shebang as `python3\r` and the entrypoint fails in container/Iron Bank builds. Pin LF so the guarantee no longer depends on each contributor's git config. No file-content churn: perseus.py is already stored LF in the index; this only formalizes and enforces it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
tcconnally
added a commit
that referenced
this pull request
Aug 30, 2026
perseus.py runs directly via its `#!/usr/bin/env python3` shebang. When checked out with CRLF (Windows core.autocrlf=true), the Linux kernel reads the shebang as `python3\r` and the entrypoint fails in container/Iron Bank builds. Pin LF so the guarantee no longer depends on each contributor's git config. No file-content churn: perseus.py is already stored LF in the index; this only formalizes and enforces it. Co-authored-by: tcconnally <hermes@perseus.observer> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.gitattributespinningperseus.py(and*.sh) to LF line endings.Why
perseus.pyis run directly via its#!/usr/bin/env python3shebang. On a Windows checkout withcore.autocrlf=true, the working copy becomes CRLF; if such a copy is used as a build context, the Linux kernel reads the shebang aspython3\rand the container entrypoint fails with:This surfaced while validating the Iron Bank container build locally. The committed blob is already LF (
git ls-files --eol perseus.py→i/lf), so Linux CI is currently fine — but that safety depends on every contributor'sautocrlfsetting. This pins the guarantee at the repo level.Churn
None.
git add --renormalize .stages nothing beyond.gitattributes— all tracked files are already LF in the index. This only formalizes and enforces the policy.🤖 Generated with Claude Code