mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-06 14:13:16 -06:00
21 lines
563 B
Go
21 lines
563 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/internal/builtin/providers/terraform"
|
|
"github.com/hashicorp/terraform/internal/grpcwrap"
|
|
"github.com/hashicorp/terraform/internal/plugin"
|
|
"github.com/hashicorp/terraform/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())
|
|
},
|
|
})
|
|
}
|