Skip to content

Fix self-referential checksum verification failure#2

Open
TrentOmega wants to merge 1 commit intomiwidot:mainfrom
TrentOmega:fix/self-referential-checksum
Open

Fix self-referential checksum verification failure#2
TrentOmega wants to merge 1 commit intomiwidot:mainfrom
TrentOmega:fix/self-referential-checksum

Conversation

@TrentOmega
Copy link

Summary

  • .ccms-checksums is included in its own checksum manifest during generation
  • After any sync, the file's hash differs from what was recorded, causing ccms pull to always report a checksum mismatch
  • Fix: exclude .ccms-checksums from generate_checksums

How to reproduce

  1. ccms push to remote
  2. ccms pull on the same or different machine
  3. Verification always fails with: Checksum mismatch: .ccms-checksums

The generate_checksums function checksums all files including
.ccms-checksums itself. After any sync, the file's hash differs
from what was recorded, causing verification to always report
a checksum mismatch. Exclude it from generation.
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