-
-
Notifications
You must be signed in to change notification settings - Fork 998
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
scaffold doesn't show default boilerplate variables #3655
Comments
Hey @platymatt , Scaffold is an opinionated command that runs Boilerplate in a way that is considered optimal for most users trying to leverage code generation via Terragrunt. That isn't to say it can't expand in functionality, though! If you're familiar with Golang, I'd really like to welcome you to become a contributor to help make scaffold the kind of tool you're hoping to have. I'm happy to support you on the process of adjusting the functionality, as long as there are still good defaults, and smart controls. You can see here how scaffold sets up Boilerplate usage, and you can see here the options that Boilerplate exposes. You can also see an example here of me proposing an adjustment to how Scaffold works by introducing a new flag. If you're interested in getting involved, I recommend joining the Discord too, so you can reach out to us if you need any guidance on best practices, etc. I think that will be the fastest way to get this issue and #3652 resolved to your satisfaction. |
Thank you for your response. I am not familiar or experienced in Golang yet, but desiring to get started. I would be willing to contribute. |
Take a look at the docs here. As first steps, I would recommend the following:
Let me know if you get stuck at any stage, and I'll help you out! |
Describe the bug
This could be a feature request instead.
If I define default variables in the boilerplate.yml they don't show up in the scaffold output when entering in variables.
When I run
terragrunt scaffold /<module-location>//<module-name>
I get the following output:When I run
./boilerplate_linux_amd64 --template-url /module-name/.boilerplate/ --output-folder /output
I get the following output:I may misunderstand as I thought scaffold was supposed to have similar features to boilerplate, but maybe I don't understand the intent.
Steps To Reproduce
These steps are using a local module in a monorepo.
terragrunt scaffold <module-location>//<module-name>
Example boilerplate.yml used
Expected behavior
I expect
terragrunt scaffold
to have similar behavior asboilerplate
as the usage is similar.Versions
Additional context
I am hoping
terragrunt scaffold
to be similar toboilerplate
, but if that is not the intent then maybe I should useboilerplate
instead as it has more features.The text was updated successfully, but these errors were encountered: