Closed mschnee closed 1 month ago
You are correct in identifying the issue. We have a fix in the next release.
We preferred to have the fix in the panfactum.hcl
rather than in the script as the script should definitely still error if given a non-existent directory.
After updating the panfactum flake to
edge.24-10-23
we noticed extremely verbose error messages attempting to apply a planThis came from the invocation of
pf-get-local-module-hash
, which is on the truthy side of a ternary expressionlocal.pf_stack_version == "local" ? run_cmd() : ""
I suspect that terraform/terragrunt/opentofu needs to evaluate the entire result set before evaluating the condition. this can be seen by changing the results like so:
resulting in
Given that this lookup we aren't checking the stack out locally, a simple change to also test for the existence of the input string as a directory should suffice.