Skip to content

The generated files say which template wrote them - #8

Merged
anderix merged 1 commit into
mainfrom
generated-files-carry-a-fingerprint
Sep 18, 2026
Merged

anderix merged 1 commit into
mainfrom
generated-files-carry-a-fingerprint

Conversation

@anderix

@anderix anderix commented Sep 18, 2026

Copy link
Copy Markdown
Member

ship sync, after a change to the templates in anderix/ship.

Every generated file now carries a fingerprint of its own contents in its marker line:

# Generated by ship (8001e560); edit internal/generate/templates and run ship sync

That is what lets ship tell a copy somebody edited from a copy the template has moved past. Before it, both read as the repo having done something wrong and both refused a release. A copy that matches its fingerprint and not the template is behind, which sync fixes and a release mentions and goes on past. A copy that does not match its fingerprint is edited, which is somebody's work, and ship sync now shows the diff and asks before writing over it.

Nothing else changed. packaging/macos/screenshot.sh is this repository's own and sync left it alone, as it always has.

ship sync. Each generated file records a fingerprint of its own contents in its
marker line, which is what tells a copy somebody edited from a copy the
template has moved past. Both used to refuse a release, and only one of them is
anybody's work about to be lost.

packaging/macos/screenshot.sh is this repository's own and was left alone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@anderix
anderix merged commit 66c14c2 into main Sep 18, 2026
6 checks passed
@anderix
anderix deleted the generated-files-carry-a-fingerprint branch September 18, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant