Skip to content

Commit

Permalink
remove internal/helper/plugin package
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Oct 27, 2020
1 parent 3d2f5fe commit 41525a3
Show file tree
Hide file tree
Showing 8 changed files with 1,571 additions and 144 deletions.
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ github.com/hashicorp/terraform-json v0.5.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8j
github.com/hashicorp/terraform-plugin-go v0.0.0-20201007135710-95da7fbd4bb8/go.mod h1:iVxhkJdmLuDh+8BKTj9bdL+/lbusHKxAEuptE8VCjdM=
github.com/hashicorp/terraform-plugin-go v0.0.0-20201020231029-49daeca5241c h1:rQPyr6gQsLIw95kCxN604RhWB6QYBDtLgu1QjcXFiTU=
github.com/hashicorp/terraform-plugin-go v0.0.0-20201020231029-49daeca5241c/go.mod h1:iVxhkJdmLuDh+8BKTj9bdL+/lbusHKxAEuptE8VCjdM=
github.com/hashicorp/terraform-plugin-sdk v1.16.0 h1:NrkXMRjHErUPPTHQkZ6JIn6bByiJzGnlJzH1rVdNEuE=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ=
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package context
package schema

type Key string

Expand Down
3 changes: 1 addition & 2 deletions helper/schema/grpc_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/hashicorp/terraform-plugin-go/tfprotov5/tftypes"
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim"
c "github.com/hashicorp/terraform-plugin-sdk/v2/internal/helper/plugin/context"
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/plans/objchange"
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/plugin/convert"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down Expand Up @@ -516,7 +515,7 @@ func (s *GRPCProviderServer) ConfigureProvider(ctx context.Context, req *proto.C
// request scoped context. This provides a substitute for the removed provider.StopContext()
// function. Ideally a provider should migrate to the context aware API that receives
// request scoped contexts, however this is a large undertaking for very large providers.
ctxHack := context.WithValue(ctx, c.StopContextKey, s.StopContext(context.Background()))
ctxHack := context.WithValue(ctx, StopContextKey, s.StopContext(context.Background()))
diags := s.provider.Configure(ctxHack, config)
resp.Diagnostics = convert.AppendProtoDiag(resp.Diagnostics, diags)

Expand Down

0 comments on commit 41525a3

Please sign in to comment.