Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: execution_order_group does not print 0 values when active #319

Open
pseudomorph opened this issue Mar 4, 2024 · 4 comments
Open

bug: execution_order_group does not print 0 values when active #319

pseudomorph opened this issue Mar 4, 2024 · 4 comments

Comments

@pseudomorph
Copy link
Collaborator

pseudomorph commented Mar 4, 2024

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.

@Almenon
Copy link
Collaborator

Almenon commented Mar 12, 2024

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.

@pseudomorph
Copy link
Collaborator Author

@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

@mjagielka
Copy link

@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.

@pseudomorph
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants