Hadron / carthage

Carthage is an Infrastructure as Code (IAC) framework
Other
7 stars 4 forks source link

Use sha256 for the default mako_task hash function #73

Closed kdienes closed 1 month ago

kdienes commented 1 month ago

Before this patch, it would use the full text of the template output as the hash value.

My reason for wanting this is to avoid the CLI spamming me with the full text from logging.info()

Pro for this is that we end up with uniform hash values that we can use as keys, I guess, and that we never have to worry about hash spam from custom functions.

Con is that if we make a custom function it's nice to have a place to debug it. So we could just change the default hash, but not re-hash custom hash functions, and also change the logging not to spam.

I have no opinion other than to want to quiet the logging to console.