Skip to content

Commit 2599ee9

Browse files
committed
remove internal/helper/plugin package
1 parent 27c67c4 commit 2599ee9

File tree

8 files changed

+1571
-144
lines changed

8 files changed

+1571
-144
lines changed

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ github.com/hashicorp/terraform-json v0.5.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8j
198198
github.com/hashicorp/terraform-plugin-go v0.0.0-20201007135710-95da7fbd4bb8/go.mod h1:iVxhkJdmLuDh+8BKTj9bdL+/lbusHKxAEuptE8VCjdM=
199199
github.com/hashicorp/terraform-plugin-go v0.0.0-20201020231029-49daeca5241c h1:rQPyr6gQsLIw95kCxN604RhWB6QYBDtLgu1QjcXFiTU=
200200
github.com/hashicorp/terraform-plugin-go v0.0.0-20201020231029-49daeca5241c/go.mod h1:iVxhkJdmLuDh+8BKTj9bdL+/lbusHKxAEuptE8VCjdM=
201+
github.com/hashicorp/terraform-plugin-sdk v1.16.0 h1:NrkXMRjHErUPPTHQkZ6JIn6bByiJzGnlJzH1rVdNEuE=
201202
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
202203
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ=
203204
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=

internal/helper/plugin/context/context.go renamed to helper/schema/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package context
1+
package schema
22

33
type Key string
44

helper/schema/grpc_provider.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"github.com/hashicorp/terraform-plugin-go/tfprotov5/tftypes"
1717
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"
1818
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim"
19-
c "github.com/hashicorp/terraform-plugin-sdk/v2/internal/helper/plugin/context"
2019
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/plans/objchange"
2120
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/plugin/convert"
2221
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
@@ -516,7 +515,7 @@ func (s *GRPCProviderServer) ConfigureProvider(ctx context.Context, req *proto.C
516515
// request scoped context. This provides a substitute for the removed provider.StopContext()
517516
// function. Ideally a provider should migrate to the context aware API that receives
518517
// request scoped contexts, however this is a large undertaking for very large providers.
519-
ctxHack := context.WithValue(ctx, c.StopContextKey, s.StopContext(context.Background()))
518+
ctxHack := context.WithValue(ctx, StopContextKey, s.StopContext(context.Background()))
520519
diags := s.provider.Configure(ctxHack, config)
521520
resp.Diagnostics = convert.AppendProtoDiag(resp.Diagnostics, diags)
522521

0 commit comments

Comments
 (0)