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

togomak wants to use all hcl files on my folder as pipelines #72

Open
esanchezxev opened this issue Nov 11, 2024 · 2 comments
Open

togomak wants to use all hcl files on my folder as pipelines #72

esanchezxev opened this issue Nov 11, 2024 · 2 comments

Comments

@esanchezxev
Copy link

When I run togomak, it picks up all hcl file son my folder and attempts to interpret the mas togomak pipeline when they are not. I have a togomak.hcl but also additional hcl files. I see that I can specify the fodler where the pipelines live with the -C flag, but is there a way to specify the actual hcl file so that it doesn't attempt to use all of them? since they are not togomak file it fails.

$ togomak --version
togomak version 2.0.0-alpha.17
@esanchezxev
Copy link
Author

This happens even if I specify --file togomak.hcl it still attempts to use other hcl files.

Specifically I have some other Packer hcl files, this is what I get:

# togomak --file togomak.hcl
0000 • togomak (version=2.0.0-alpha.17)
Error: Unsupported block type

  on /Users/user/projects/packer/my-ami/plugins.pkr.hcl line 1, in packer:
   1: packer {

Blocks of type "packer" are not expected here.

notice how it attempst to interpret the plugins.pkr.hcl file as a togomak pipeline even when I specified the togomak.hcl file which is the one that has the pipeline

@mcintyre321
Copy link

It would be nice if it used a custom extension, like terraform uses .tf

This would require a major version release though

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

2 participants