Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmay-db committed Aug 22, 2024
1 parent b8ba736 commit 2a2723a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ provider_installation {
After installing the necessary software for building provider from sources, you should be able to run `make coverage` to run the tests and see the coverage.

## Package organization for Providers
We are migrating the resource from SDKv2 to Plugin Framework provider and hence both of them exist in the codebase. They are defined under internal root directory:
- common/provider: This package contains the changes common to both the providers example provider factory and tests
We are migrating the resource from SDKv2 to Plugin Framework provider and hence both of them exist in the codebase. For better readability and development, they are defined under internal root directory:
- `common/provider`: This package contains the changes common to both the providers example provider factory and tests
- imports are declared as:
pluginframeworkprovider "github.com/databricks/terraform-provider-databricks/internal/pluginframework/provider"
sdkv2provider "github.com/databricks/terraform-provider-databricks/internal/sdkv2/provider"
- sdkv2/provider: This package contains the changes related to only sdkv2 provider and shouldn't depend on pluginframework provider
- pluginframework/provider: This package contains the changes related to only plugin framework provider and shouldn't depend on sdkv2
- `pluginframeworkprovider` "github.com/databricks/terraform-provider-databricks/internal/pluginframework/provider"
- `sdkv2provider` "github.com/databricks/terraform-provider-databricks/internal/sdkv2/provider"
- `sdkv2/provider`: This package contains the changes related to only sdkv2 provider and shouldn't depend on pluginframework provider
- `pluginframework/provider`: This package contains the changes related to only plugin framework provider and shouldn't depend on sdkv2

Note: To avoid circular dependency and make code easy to read, any common changes for both provider will go into interna/common/provider package.

Expand Down

0 comments on commit 2a2723a

Please sign in to comment.