hashicorp / hcat

Hashicorp Configuration and Templating library (hcat, pronounced hashicat)
Mozilla Public License 2.0
96 stars 12 forks source link

port over updated writeToFile from consul-template #107

Closed eikenb closed 2 years ago

eikenb commented 2 years ago

Better version of writeToFile was later added to consul-template that is more powerful and robust. Porting it over.

Doing this now as consul-template's tests for this functionality work with github-actions CI setup where hashicat's has a permissions issue. Instead of spending a bunch of time fixing it I just decided to go ahead and port this over as it would need to be done later anyways.

Remember to add the hashicat-update-complete tag to https://github.com/hashicorp/consul-template/pull/1549 when this is done.

eikenb commented 2 years ago

Sorry, I should have explained in a followup. The tests that are failing are additional tests that need to be fixed due to differences with github-actions CI setup (which I am working to migrate hcat to).

The CircleCI test, previously the only test, is still passing and please ignore the github-actions tests for now as I work to fix them.