github / octocatalog-diff

Compile Puppet catalogs from 2 branches, versions, etc., and compare them
https://rubygems.org/gems/octocatalog-diff/
MIT License
239 stars 85 forks source link

Add a parameter to not clean temporary directory #258

Open dploeger opened 2 years ago

dploeger commented 2 years ago

When a run of octocatalog-diff fails, it would be great if it wouldn't clean the temporary directory so that additional debugging can take place.

As a workaround, I currently comment out https://github.com/github/octocatalog-diff/blob/5071b97d89ab9ea04ff0e3603254f0265f4326a8/lib/octocatalog-diff/util/util.rb#L73 currently, but a parameter like "--keep-temporary-on-fail" would help here.

claviola commented 2 years ago

You can do this by setting OCTOCATALOG_DIFF_TEMPDIR. See "advanced environment variables" in doc/advanced-environment-variables.md.