This library is a facade that combines all built-in functions provided by HashiCorp Packer and some functions from HashiCorp Terraform.
All copied functions are copied from Terraform and Packer's latest MPL 2.0 license version, all referenced functions are based on MPL 2.0 or MIT license.
env
function is different than the Packer version, we provided a goroutine-local cache so the caller can set different environment variables for different goroutines, this is very handy when you allow users to set different environment variables for a specified HCL block, like this example. Please check out this unit test for details.