-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #516 from pulumi/iwahbe/remove-shim-trick
Remove shim trick
- Loading branch information
Showing
5 changed files
with
30 additions
and
1,438 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
patches/0002-Add-shim.NewProvider-to-expose-internal-provider.New.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 82d0f20ef70da03c1e36eb675debc6c6f276cd29 Mon Sep 17 00:00:00 2001 | ||
From: Ian Wahbe <[email protected]> | ||
Date: Mon, 6 Mar 2023 13:39:15 +0100 | ||
Subject: [PATCH] Add `shim.NewProvider` to expose `internal/provider.New` | ||
|
||
--- | ||
shim/shim.go | 10 ++++++++++ | ||
1 file changed, 10 insertions(+) | ||
create mode 100644 shim/shim.go | ||
|
||
diff --git a/shim/shim.go b/shim/shim.go | ||
new file mode 100644 | ||
index 0000000..fb00354 | ||
--- /dev/null | ||
+++ b/shim/shim.go | ||
@@ -0,0 +1,10 @@ | ||
+package shim | ||
+ | ||
+import ( | ||
+ "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" | ||
+ "github.com/terraform-providers/terraform-provider-docker/internal/provider" | ||
+) | ||
+ | ||
+func NewProvider() *schema.Provider { | ||
+ return provider.New("dev")() | ||
+} | ||
-- | ||
2.39.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.