mirror of https://github.com/hashicorp/packer
When creating a temporary plugin directory, we had to build a cleanup function, which could be as simple as `os.Mkdirall` without any kind of warning that a directory failed to be cleaned-up, or we could do some more work in order to report the possible issues around this. That code would quickly be redundant, as there's not a ton of variability in the code that can be written for this step, so we abstract it through a pre-defined cancellation function which can be safely defer invoked.pull/12983/head
parent
56c2b5ad8b
commit
0e2695d3e2
Loading…
Reference in new issue