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

Turning task into an importable module #724

Open
0x2b3bfa0 opened this issue Nov 18, 2022 · 2 comments
Open

Turning task into an importable module #724

0x2b3bfa0 opened this issue Nov 18, 2022 · 2 comments

Comments

@0x2b3bfa0
Copy link
Member

0x2b3bfa0 commented Nov 18, 2022

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:

module terraform-provider-iterative

Option B

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

@0x2b3bfa0
Copy link
Member Author

0x2b3bfa0 commented Nov 18, 2022

(I prefer option B)

@tasdomas
Copy link
Contributor

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.

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