diff --git a/internal/backend/local/backend_local_test.go b/internal/backend/local/backend_local_test.go index 00af0a36324d..05573f0f9d97 100644 --- a/internal/backend/local/backend_local_test.go +++ b/internal/backend/local/backend_local_test.go @@ -6,6 +6,8 @@ import ( "path/filepath" "testing" + "github.com/zclconf/go-cty/cty" + "github.com/hashicorp/terraform/internal/backend" "github.com/hashicorp/terraform/internal/command/arguments" "github.com/hashicorp/terraform/internal/command/clistate" @@ -20,7 +22,6 @@ import ( "github.com/hashicorp/terraform/internal/states/statemgr" "github.com/hashicorp/terraform/internal/terminal" "github.com/hashicorp/terraform/internal/tfdiags" - "github.com/zclconf/go-cty/cty" ) func TestLocalRun(t *testing.T) { diff --git a/internal/cloud/backend.go b/internal/cloud/backend.go index fa3ed98f85d9..d08754d230a5 100644 --- a/internal/cloud/backend.go +++ b/internal/cloud/backend.go @@ -16,6 +16,11 @@ import ( version "github.com/hashicorp/go-version" svchost "github.com/hashicorp/terraform-svchost" "github.com/hashicorp/terraform-svchost/disco" + "github.com/mitchellh/cli" + "github.com/mitchellh/colorstring" + "github.com/zclconf/go-cty/cty" + "github.com/zclconf/go-cty/cty/gocty" + "github.com/hashicorp/terraform/internal/backend" "github.com/hashicorp/terraform/internal/configs/configschema" "github.com/hashicorp/terraform/internal/plans" @@ -23,10 +28,6 @@ import ( "github.com/hashicorp/terraform/internal/terraform" "github.com/hashicorp/terraform/internal/tfdiags" tfversion "github.com/hashicorp/terraform/version" - "github.com/mitchellh/cli" - "github.com/mitchellh/colorstring" - "github.com/zclconf/go-cty/cty" - "github.com/zclconf/go-cty/cty/gocty" backendLocal "github.com/hashicorp/terraform/internal/backend/local" ) diff --git a/internal/cloud/state.go b/internal/cloud/state.go index bb4db138a1f1..fabc1b8b5d93 100644 --- a/internal/cloud/state.go +++ b/internal/cloud/state.go @@ -8,11 +8,12 @@ import ( "strings" "github.com/hashicorp/go-tfe" + "github.com/zclconf/go-cty/cty" + "github.com/zclconf/go-cty/cty/gocty" + "github.com/hashicorp/terraform/internal/states" "github.com/hashicorp/terraform/internal/states/remote" "github.com/hashicorp/terraform/internal/states/statemgr" - "github.com/zclconf/go-cty/cty" - "github.com/zclconf/go-cty/cty/gocty" ) // State is similar to remote State and delegates to it, except in the case of output values, diff --git a/internal/cloud/state_test.go b/internal/cloud/state_test.go index 331daff6611a..738ae721a44d 100644 --- a/internal/cloud/state_test.go +++ b/internal/cloud/state_test.go @@ -4,6 +4,7 @@ import ( "testing" "github.com/hashicorp/go-tfe" + "github.com/hashicorp/terraform/internal/states/statemgr" ) diff --git a/internal/cloud/testing.go b/internal/cloud/testing.go index c800178e99c0..cfb49cf9b352 100644 --- a/internal/cloud/testing.go +++ b/internal/cloud/testing.go @@ -15,6 +15,9 @@ import ( svchost "github.com/hashicorp/terraform-svchost" "github.com/hashicorp/terraform-svchost/auth" "github.com/hashicorp/terraform-svchost/disco" + "github.com/mitchellh/cli" + "github.com/zclconf/go-cty/cty" + "github.com/hashicorp/terraform/internal/backend" "github.com/hashicorp/terraform/internal/configs" "github.com/hashicorp/terraform/internal/configs/configschema" @@ -24,8 +27,6 @@ import ( "github.com/hashicorp/terraform/internal/terraform" "github.com/hashicorp/terraform/internal/tfdiags" "github.com/hashicorp/terraform/version" - "github.com/mitchellh/cli" - "github.com/zclconf/go-cty/cty" backendLocal "github.com/hashicorp/terraform/internal/backend/local" ) diff --git a/internal/states/remote/state.go b/internal/states/remote/state.go index 5348abb8f031..ae123f8e3647 100644 --- a/internal/states/remote/state.go +++ b/internal/states/remote/state.go @@ -6,6 +6,7 @@ import ( "sync" uuid "github.com/hashicorp/go-uuid" + "github.com/hashicorp/terraform/internal/states" "github.com/hashicorp/terraform/internal/states/statefile" "github.com/hashicorp/terraform/internal/states/statemgr"