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

run_cmd fail with options as first arg #294

Open
darwin67 opened this issue Sep 19, 2023 · 0 comments
Open

run_cmd fail with options as first arg #294

darwin67 opened this issue Sep 19, 2023 · 0 comments

Comments

@darwin67
Copy link

darwin67 commented Sep 19, 2023

Summary

When using run_cmd with options like

run_cmd("--terragrunt-global-cache", "--terragrunt-quiet", "${get_terragrunt_dir()}/date_to_unix_ms", "2030-02-21")

following the docs

Running terragrunt-atlantis-config generate will fail with the following error

ERRO[0000]    9:   range_end   = run_cmd("--terragrunt-global-cache", "--terragrunt-quiet", "${get_terragrunt_dir()}/date_to_unix_ms", "2030-02-21")
ERRO[0000]
ERRO[0000] Call to function "run_cmd" failed: exec: "--terragrunt-global-cache": executable file not found in $PATH.

Running with the options works fine when working with terragrunt, but only fails when running terragrunt-atlantis-config.

Removing the options will pass but can potentially generate a lot of stdout noise when running run-all plan.

Expected behavior

Should not error.

Additional Context

OS: Arch Linux
CLI Version: 1.16.0

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

1 participant