terraform-provider-iterative icon indicating copy to clipboard operation
terraform-provider-iterative copied to clipboard

Turning `task` into an importable module

Open 0x2b3bfa0 opened this issue 2 years ago • 2 comments

Terraform providers modules are named in such a way that prevents importing them. Now that we're going to use the task package from several repositories, we'll need to perform some modifications so it can be imported.

Option A

Rename terraform-provider-iterative to github.com/iterative/terraform-provider-iterative here and on every imaginable import:

https://github.com/iterative/terraform-provider-iterative/blob/85645f465d82dc849dc51fcbd54a395ac185b6b6/go.mod#L1

Option B

Create a new github.com/iterative/leo repository/module and move the task package (also cmd) and children there.

0x2b3bfa0 avatar Nov 18 '22 12:11 0x2b3bfa0

(I prefer option B)

0x2b3bfa0 avatar Nov 18 '22 12:11 0x2b3bfa0

To be clear - the way terraform provider modules are named has no technical reason behind it. It's just a means of not having to maintain a stable API. Nothing will break if we change the module name of terraform-provider-iterative.

tasdomas avatar Nov 18 '22 12:11 tasdomas