Rename root module name. (#4)

* Rename module name from "github.com/hashicorp/terraform" to "github.com/placeholderplaceholderplaceholder/opentf".

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Gofmt.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Regenerate protobuf.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Fix comments.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Undo issue and pull request link changes.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Undo comment changes.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Fix comment.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* Undo some link changes.

Signed-off-by: Jakub Martin <kubam@spacelift.io>

* make generate && make protobuf

Signed-off-by: Jakub Martin <kubam@spacelift.io>

---------

Signed-off-by: Jakub Martin <kubam@spacelift.io>
This commit is contained in:
Kuba Martin
2023-08-17 14:45:11 +02:00
committed by GitHub
parent a458568bec
commit ebcf7455eb
911 changed files with 2998 additions and 2992 deletions

View File

@@ -4,13 +4,13 @@
package differ
import (
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/zclconf/go-cty/cty"
ctyjson "github.com/zclconf/go-cty/cty/json"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
)
func ComputeDiffForAttribute(change structured.Change, attribute *jsonprovider.Attribute) computed.Diff {

View File

@@ -4,12 +4,12 @@
package differ
import (
"github.com/hashicorp/terraform/internal/command/jsonformat/collections"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/hashicorp/terraform/internal/plans"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/collections"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
)
func ComputeDiffForBlock(change structured.Change, block *jsonprovider.Block) computed.Diff {

View File

@@ -4,8 +4,8 @@
package differ
import (
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
)
// asDiff is a helper function to abstract away some simple and common

View File

@@ -11,11 +11,11 @@ import (
"github.com/zclconf/go-cty/cty"
ctyjson "github.com/zclconf/go-cty/cty/json"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured/attribute_path"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/hashicorp/terraform/internal/plans"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured/attribute_path"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
)
type SetDiff struct {

View File

@@ -6,13 +6,13 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/collections"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured/attribute_path"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/hashicorp/terraform/internal/plans"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/collections"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured/attribute_path"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
)
func computeAttributeDiffAsList(change structured.Change, elementType cty.Type) computed.Diff {

View File

@@ -6,12 +6,12 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/collections"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/hashicorp/terraform/internal/plans"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/collections"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
)
func computeAttributeDiffAsMap(change structured.Change, elementType cty.Type) computed.Diff {

View File

@@ -6,12 +6,12 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/collections"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/hashicorp/terraform/internal/plans"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/collections"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
)
func computeAttributeDiffAsObject(change structured.Change, attributes map[string]cty.Type) computed.Diff {

View File

@@ -6,9 +6,9 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
)
func ComputeDiffForOutput(change structured.Change) computed.Diff {

View File

@@ -6,9 +6,9 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
)
func computeAttributeDiffAsPrimitive(change structured.Change, ctype cty.Type) computed.Diff {

View File

@@ -6,11 +6,11 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/hashicorp/terraform/internal/plans"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
)
type CreateSensitiveRenderer func(computed.Diff, bool, bool) computed.DiffRenderer

View File

@@ -8,13 +8,13 @@ import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/collections"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured/attribute_path"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/hashicorp/terraform/internal/plans"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/collections"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured/attribute_path"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
)
func computeAttributeDiffAsSet(change structured.Change, elementType cty.Type) computed.Diff {

View File

@@ -6,10 +6,10 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/collections"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/collections"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
)
func computeAttributeDiffAsTuple(change structured.Change, elementTypes []cty.Type) computed.Diff {

View File

@@ -6,10 +6,10 @@ package differ
import (
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed"
"github.com/hashicorp/terraform/internal/command/jsonformat/computed/renderers"
"github.com/hashicorp/terraform/internal/command/jsonformat/structured"
"github.com/hashicorp/terraform/internal/command/jsonprovider"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/computed/renderers"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonformat/structured"
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/jsonprovider"
)
func checkForUnknownType(change structured.Change, ctype cty.Type) (computed.Diff, bool) {