-
Notifications
You must be signed in to change notification settings - Fork 106
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
panic: not a string #266
Comments
Closing this issue as I've realized it was entirely user error. I'll post my fix here, although it's highly unlikely that someone else will stumble across this issue for the same reason. At some point in my Git history (presumably through a bad find/replace operation), I added a extra_atlantis_dependencies = [
- yamldecode(file(find_in_parent_folders("account.yaml", "empty.yaml"))),
- yamldecode(file(find_in_parent_folders("aws.yaml", "empty.yaml"))),
- yamldecode(file(find_in_parent_folders("gitlab.yaml", "empty.yaml"))),
- yamldecode(file(find_in_parent_folders("region.yaml", "empty.yaml"))),
- yamldecode(file(find_in_parent_folders("root.yaml", "empty.yaml"))),
- yamldecode(file(find_in_parent_folders("versions.yaml", "empty.yaml"))),
+ find_in_parent_folders("account.yaml", "empty.yaml"),
+ find_in_parent_folders("aws.yaml", "empty.yaml"),
+ find_in_parent_folders("gitlab.yaml", "empty.yaml"),
+ find_in_parent_folders("region.yaml", "empty.yaml"),
+ find_in_parent_folders("root.yaml", "empty.yaml"),
+ find_in_parent_folders("versions.yaml", "empty.yaml"),
]
} |
👋 despite being a user error the error message could be more explicit. I just lost a ton of time because of this same problem and decided to improve the error message to make it easier to troubleshoot this problem when this happens again: #367 |
Current Behavior
Running
terragrunt-atlantis-config generate
with any combination of flags/arguments causes apanic: not a string
error and fails. I first noticed this on a repository I've been using with Atlantis for over a year, and no changes have been made to the Atlantis configuration or to the rootterragrunt.hcl
file. This started happening after an update to the latest version ofterragrunt-atlantis-config
.Expected Behavior
Running
terragrunt-atlantis-config generate
should generate theatlantis.yaml
file necessary for Atlantis to properly read the Terragrunt repository.Steps To Reproduce
From the Atlantis container, run
terragrunt-atlantis-config generate --output=atlantis.yaml --autoplan=false --workflow=terragrunt --ignore-parent-terragrunt --parallel=false --ignore-dependency-blocks
(the same command I've been using for a year) in the root of the Terragrunt repository.Environment
OS: Ubuntu 22.04 (Docker host running the Atlantis container)
Dockerfile:
CPU architecture
x86-64
How is Atlantis deployed?
Using
docker-compose
:Container logs
The text was updated successfully, but these errors were encountered: