-
Notifications
You must be signed in to change notification settings - Fork 318
Change provider structure to best practices from terraform-provider-scaffolding project #815
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
Change provider structure to best practices from terraform-provider-scaffolding project #815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of cool sdk v2 improvements!
I just want to acknowledge that moving code to internal
is going to break almost all PRs and anyone who might be using this repository as a package (which they shouldn't.) What are the benefits of moving code to internal
now in your opinion?
I looked at some other providers. The major first-party ones have largely moved to internal
, and the major third-party ones have not yet.
4036753
to
3532f95
Compare
Yes, I actually share the same hesitation towards this change. First of all, I wouldn't want to merge this before 3.9.0 is out. The reason I went for the change anyways (to be merged after 3.9.0) is because I don't foresee that there will be an "ideal" time to make it. Also I think a v4 wouldn't necessarily be it, because the target audience for the "break" is another one. IMHO: moving it to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also I think a v4 wouldn't necessarily be it
Agree
(2) that no one is using it a go dependency
That's a good reason, in case we modularize more in the future.
This pull request has merge conflicts. Please rebase your branch onto |
9d2f369
to
1ad119a
Compare
Conflicts are resolved. Thank you! 😀 |
1ad119a
to
da9309f
Compare
This pull request has merge conflicts. Please rebase your branch onto |
@armsnyder Are you okay if we merge this early next week? ... most open PRs have merge conflicts already, so maybe it doesn't hurt too much. Awaiting the regression bugfix release, of course ;) |
@timofurrer Sounds good, as long as it's after the 3.9.1 patch release. I don't know if you saw my two PRs for this branch, in your fork? It's up to you if you want to include those or not. I thought it might make sense to get the changes in the same PR (this one). |
Yes, I'll wait for 3.9.1 - I've marked it as I haven't seen your PR 🙈 Let me see :) |
@armsnyder I've added the changes from our two PRs - look good to me 🎉 |
This pull request has merge conflicts. Please rebase your branch onto |
43f9631
to
b1b5e5e
Compare
Conflicts are resolved. Thank you! 😀 |
bf18466
to
16d7259
Compare
16d7259
to
4c2c4f4
Compare
This functionality has been released in v3.10.0 of the Terraform GitLab Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue. Thank you! |
At first glance, this change set appears to be quite huge, but actually isn't.
It basically reproduces the best practice provider structure and setup from the terraform-provider-scaffolding project.
The major changes are that:
gitlab
tointernal/provider
directorygitlab
toprovider
packagemain.go
andprovider.go
testGitlabClient
which is separate from the provider Gitlab client.