Skip to content

Commit

Permalink
fix plugin framework
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed May 1, 2024
1 parent 640f0e2 commit 5f63525
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
working-directory: ./provider
run: go mod download

- run: make tfgen

- run: make build_nodejs

- uses: goreleaser/goreleaser-action@v5
Expand Down
7 changes: 4 additions & 3 deletions provider/cmd/pulumi-resource-planetscale/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@
package main

import (
"context"
_ "embed"

"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
"github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge"
planetscale "github.com/sst/pulumi-planetscale/provider"
"github.com/sst/pulumi-planetscale/provider/pkg/version"
)

//go:embed schema.json
var pulumiSchema []byte

func main() {
// Modify the path to point to the new provider
tfbridge.Main("planetscale", version.Version, planetscale.Provider(), pulumiSchema)
tfbridge.Main(context.Background(), "planetscale", planetscale.Provider(),
tfbridge.ProviderMetadata{PackageSchema: pulumiSchema})
}
5 changes: 2 additions & 3 deletions provider/cmd/pulumi-tfgen-planetscale/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
package main

import (
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfgen"
"github.com/pulumi/pulumi-terraform-bridge/pf/tfgen"
planetscale "github.com/sst/pulumi-planetscale/provider"
"github.com/sst/pulumi-planetscale/provider/pkg/version"
)

func main() {
// Modify the path to point to the new provider
tfgen.Main("planetscale", version.Version, planetscale.Provider())
tfgen.Main("planetscale", planetscale.Provider())
}

0 comments on commit 5f63525

Please sign in to comment.