-
-
Notifications
You must be signed in to change notification settings - Fork 966
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
Using extra_args on init to pass -no-color results in duplicate -no-color (auto-init) #648
Comments
True, it doesn't look like we de-dupe args there. PR to fix it is welcome. Workaround is, of course, not to pass |
Do you happen to remember why -no-color was added as part of this commit? Is the fix as simple as just removing the argument? |
Because we're reading the |
I don't see a clear way to do that at the moment. At least for now, I'll have to take a pass on trying to patch it myself. |
Just adding some additional (no)color to this issue: we're using Atlantis in conjunction with Terragrunt, and Atlantis's output in Github PRs is dramatically improved by setting I updated my Atlantis workflow to remove
It's strange that I was clearly running into an issue with |
I am experiencing the same thing. |
I am also experiencing the auto init problem as @jasonarewhy (which might be a separate issue?) - It seems to stem from this file Lines 756 to 767 in 2523967
terragruntOptions are stripped out and replaced with a smaller set.
What it seems like is that the auto-init is run differently from when you run terragrunt init because if you run the actual command it runs prepareInitCommand defined here: Lines 616 to 633 in 2523967
Lines 689 to 701 in 2523967
Unless I'm way off base I'll try to get some free cycles to push up a PR to fix this (I think it's as simple as calling prepareInitCommand first/instead but i'll have to dig a little deeper). |
@jasonarewhy Meanwhile I'm working around this issue when using Terragrunt with Atlantis by adding env var |
Just ran into this when trying to override, from the command line, a In my case |
Terragrunt's auto-init is adding
-no-color
to its terraform command, so whenextra_args
is used to pass-no-color
toterraform init
, we end up with two-no-color
args on the command. Terraform considers this invalid and will just print its help/usage.in terraform.tfvars:
The text was updated successfully, but these errors were encountered: