Skip to content

Commit 7b9abd9

Browse files
authored
Merge pull request #1029 from hashicorp/brandonc/bflad/internalize
Migrate provider code to internal/ package
2 parents 1ca64c4 + a0d7c76 commit 7b9abd9

File tree

168 files changed

+182
-173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+182
-173
lines changed

.github/actions/test-provider-tfe/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ runs:
103103
GITHUB_WORKSPACE_BRANCH: "test"
104104
GITHUB_TOKEN: "${{ inputs.testing-github-token }}"
105105
MOD_PROVIDER: github.com/hashicorp/terraform-provider-tfe
106-
MOD_TFE: github.com/hashicorp/terraform-provider-tfe/tfe
106+
MOD_TFE: github.com/hashicorp/terraform-provider-tfe/internal/provider
107107
MOD_VERSION: github.com/hashicorp/terraform-provider-tfe/version
108108
run: |
109109
gotestsum --junitfile summary.xml --format short-verbose -- $MOD_PROVIDER $MOD_TFE $MOD_VERSION -v -timeout=30m -run "${{ steps.test_split.outputs.run }}"

tfe/agent_pool_helpers.go renamed to internal/provider/agent_pool_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
33

4-
package tfe
4+
package provider
55

66
import (
77
"fmt"

tfe/client_mock_workspaces.go renamed to internal/provider/client_mock_workspaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
33

4-
package tfe
4+
package provider
55

66
import (
77
"context"

tfe/config_unix.go renamed to internal/provider/config_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//go:build !windows
55
// +build !windows
66

7-
package tfe
7+
package provider
88

99
import (
1010
"errors"

tfe/config_windows.go renamed to internal/provider/config_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//go:build windows
55
// +build windows
66

7-
package tfe
7+
package provider
88

99
import (
1010
"path/filepath"

tfe/data_source_agent_pool.go renamed to internal/provider/data_source_agent_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
33

4-
package tfe
4+
package provider
55

66
import (
77
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

tfe/data_source_agent_pool_test.go renamed to internal/provider/data_source_agent_pool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
33

4-
package tfe
4+
package provider
55

66
import (
77
"fmt"

tfe/data_source_github_app_installation.go renamed to internal/provider/data_source_github_app_installation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
3-
package tfe
3+
package provider
44

55
import (
66
"context"

tfe/data_source_github_app_installation_test.go renamed to internal/provider/data_source_github_app_installation_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
33

4-
package tfe
4+
package provider
55

66
import (
77
"fmt"
8-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
98
"testing"
9+
10+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
1011
)
1112

1213
func testAccTFEGHAInstallationDataSourcePreCheck(t *testing.T) {

tfe/data_source_ip_ranges.go renamed to internal/provider/data_source_ip_ranges.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) HashiCorp, Inc.
22
// SPDX-License-Identifier: MPL-2.0
33

4-
package tfe
4+
package provider
55

66
import (
77
"fmt"

0 commit comments

Comments
 (0)