terraform-provider-iterative
terraform-provider-iterative copied to clipboard
Separate leo and tpi executables
To my mind, moving the Terraform Provider entry point under
./cmd/tpimakes no sense from a project structure standpoint. Note that this repository is first and foremost a Terraform Provider.I'd wait to refine
leouser experience a bit more and then suggest migrating it to a different module, so it can be easily installed withgo installlike any other tool, and theiterative_taskTerraform Resource can still depend on the underlying packages.
Ok, I've moved tpi back into project root.
As stated at https://github.com/iterative/terraform-provider-iterative/pull/662#pullrequestreview-1102257207, prematurely separating binaries in the same repository might not add too much value, and it's probably more important to separate the repositories themselves. 🤔
I'd argue that the binaries were combined prematurely. And that is causing a bug.
I'd argue[^1] that whether binaries are combined or not is not the main issue, but trying to shoehorn Terraform HCL on a Cobra & Viper command-line tool was definitely premature (or, rather, something that shouldn't have happened)
[^1]: Although agreeing is a strange way of arguing
I don't want to stop this pull request for the sake of perfectionism; it's indeed a step in the right direction, degree more or less 🌏 🌍 🌎