Merge pull request #196 from opentffoundation/internal-builtin-providers-tf

Rename `internal/builtin/providers/terraform` and remove `provider-terraform`
This commit is contained in:
RLRabinowitz
2023-08-28 14:20:44 +03:00
committed by GitHub
12 changed files with 7 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package terraform
package tf
import (
"fmt"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package terraform
package tf
import (
"fmt"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package terraform
package tf
import (
"fmt"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package terraform
package tf
import (
backendInit "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/init"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package terraform
package tf
import (
"fmt"

View File

@@ -1,7 +1,7 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package terraform
package tf
import (
"strings"

View File

@@ -15,7 +15,7 @@ import (
plugin "github.com/hashicorp/go-plugin"
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
terraformProvider "github.com/placeholderplaceholderplaceholder/opentf/internal/builtin/providers/terraform"
terraformProvider "github.com/placeholderplaceholderplaceholder/opentf/internal/builtin/providers/tf"
"github.com/placeholderplaceholderplaceholder/opentf/internal/getproviders"
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
tfplugin "github.com/placeholderplaceholderplaceholder/opentf/internal/plugin"

View File

@@ -1,20 +0,0 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package main
import (
"github.com/placeholderplaceholderplaceholder/opentf/internal/builtin/providers/terraform"
"github.com/placeholderplaceholderplaceholder/opentf/internal/grpcwrap"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plugin"
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin5"
)
func main() {
// Provide a binary version of the internal terraform provider for testing
plugin.Serve(&plugin.ServeOpts{
GRPCProviderFunc: func() tfplugin5.ProviderServer {
return grpcwrap.Provider(terraform.NewProvider())
},
})
}