srevinsaju / togomak

A declarative pipeline orchestrator with the magic of HCL as a configuration language, inspired from Terraform's architecture.
https://togomak.srev.in
Mozilla Public License 2.0
147 stars 5 forks source link

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

Open esanchezxev opened 1 day ago

esanchezxev commented 1 day ago

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 commented 1 day ago

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