Commit 1e3a925
feat: add shim package re-exporting the provider constructor
The provider implementation lives in internal/provider, which Go's module
visibility rules make unimportable from outside this repository. Re-exporting
New through a non-internal shim package lets external tooling embed the provider
— in particular a Pulumi provider built on the Pulumi Terraform Bridge, which
must construct the terraform-plugin-framework provider to generate a schema and
language SDKs.
No behavior change: shim.New returns exactly what main.go already passes to
providerserver.Serve.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 1a7677f commit 1e3a925
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments