Skip to content
Discussion options

You must be logged in to vote

Will chezmoi consider this as a new file and will it re-download it when expected size and SHA sum are changed?

No. chezmoi only uses the URL. Once you specify refreshPeriod = 0 chezmoi will only ever download the file once.

Also, I've noticed that when specified SHA sum mismatches that of the file, chezmoi gives an alarm and stops working, but when the sizes mismatch, it works and applies everything as if nothing wrong is happening. Is this an OK behaviour or checksum.size just isn't checked properly?

This sounds like a bug in chezmoi. Note that there's no reason to specify both checksum.size and checksum.sha256 because if the size is incorrect then the SHA256 checksum will also not …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vbrand1984
Comment options

Answer selected by vbrand1984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants