terragrunt-atlantis-config icon indicating copy to clipboard operation
terragrunt-atlantis-config copied to clipboard

bug: execution_order_group does not print 0 values when active

Open pseudomorph opened this issue 11 months ago • 4 comments

0 is considered an empty value for the purposes of omitempty here: https://github.com/transcend-io/terragrunt-atlantis-config/blob/master/cmd/config.go#L57

This means that even when --execution-order-groups is set, the execution group 0, is not placed into config.


This should be addressable by using a pointer.

pseudomorph avatar Mar 04 '24 23:03 pseudomorph

Sorry, I'm a new maintainer - what is --execution-order-groups? The readme for this project says it "Computes execution_order_group for projects", but I'm not sure what execution_order_group is. I didn't see it in Atlantis docs.

Almenon avatar Mar 12 '24 04:03 Almenon

@Almenon - it's a parameter which can be set in the repo/project config to determine what order projects are run in: https://www.runatlantis.io/docs/repo-level-atlantis-yaml.html#order-of-planning-applying

pseudomorph avatar Mar 12 '24 15:03 pseudomorph

@pseudomorph Any idea how to use execution_order_group functionally here ? Looks like its not possible to setup this param as local on module level ( hcl file ) .. so Im not sure how we can use this inside terragrunt-atlantis-config tool.

mjagielka avatar Apr 03 '24 20:04 mjagielka

execution_order_group basically is derived from the dependency chain which Terragrunt evaluates.

#237 Details when this was introduced.

All this Issue is for is to ensure that projects which are the first in the dependency line, or which fall outside of a dependency chain, are marked with an execution_order_group of 0, when the flag is set.

pseudomorph avatar Apr 04 '24 00:04 pseudomorph