We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc38f9 commit 5895951Copy full SHA for 5895951
main.go
@@ -1,12 +1,19 @@
1
package main
2
3
import (
4
- "github.com/hashicorp/terraform-plugin-sdk/v2/plugin"
+ "context"
5
+ "log"
6
+
7
+ "github.com/hashicorp/terraform-plugin-framework/providerserver"
8
"github.com/julienlevasseur/terraform-provider-uname/internal/provider"
9
)
10
11
func main() {
- plugin.Serve(&plugin.ServeOpts{
- ProviderFunc: provider.Provider,
12
+ err := providerserver.Serve(context.Background(), provider.New, providerserver.ServeOpts{
13
+ Address: "registry.terraform.io/julienlevasseur/uname",
14
+ ProtocolVersion: 5,
15
})
16
+ if err != nil {
17
+ log.Fatal(err)
18
+ }
19
}
0 commit comments