Skip to content

Commit

Permalink
Update package name (#3)
Browse files Browse the repository at this point in the history
* update package name

Signed-off-by: Ronny Orot <[email protected]>

* revert one change that didn't make sense

---------

Signed-off-by: Ronny Orot <[email protected]>
  • Loading branch information
Evi1Pumpkin authored Dec 25, 2024
1 parent 509e69c commit 99f895a
Show file tree
Hide file tree
Showing 86 changed files with 151 additions and 151 deletions.
2 changes: 1 addition & 1 deletion earlydecoder/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package earlydecoder

import (
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/terraform-schema/backend"
"github.com/opentofu/opentofu-schema/backend"
"github.com/zclconf/go-cty/cty"
)

Expand Down
2 changes: 1 addition & 1 deletion earlydecoder/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package earlydecoder
import (
"fmt"

"github.com/hashicorp/terraform-schema/module"
"github.com/opentofu/opentofu-schema/module"
)

type dataSource struct {
Expand Down
4 changes: 2 additions & 2 deletions earlydecoder/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl/v2"
tfaddr "github.com/hashicorp/terraform-registry-address"
"github.com/hashicorp/terraform-schema/internal/addr"
"github.com/hashicorp/terraform-schema/module"
"github.com/opentofu/opentofu-schema/internal/addr"
"github.com/opentofu/opentofu-schema/module"
)

func LoadModule(path string, files map[string]*hcl.File) (*module.Meta, hcl.Diagnostics) {
Expand Down
6 changes: 3 additions & 3 deletions earlydecoder/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/hashicorp/hcl/v2/ext/typeexpr"
"github.com/hashicorp/hcl/v2/hclsyntax"
tfaddr "github.com/hashicorp/terraform-registry-address"
"github.com/hashicorp/terraform-schema/backend"
"github.com/hashicorp/terraform-schema/internal/addr"
"github.com/hashicorp/terraform-schema/module"
"github.com/opentofu/opentofu-schema/backend"
"github.com/opentofu/opentofu-schema/internal/addr"
"github.com/opentofu/opentofu-schema/module"
"github.com/zclconf/go-cty-debug/ctydebug"
"github.com/zclconf/go-cty/cty"
)
Expand Down
4 changes: 2 additions & 2 deletions earlydecoder/load_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/hashicorp/hcl/v2/ext/typeexpr"
"github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl/v2/hclsyntax"
"github.com/hashicorp/terraform-schema/backend"
"github.com/hashicorp/terraform-schema/module"
"github.com/opentofu/opentofu-schema/backend"
"github.com/opentofu/opentofu-schema/module"
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert"
)
Expand Down
2 changes: 1 addition & 1 deletion earlydecoder/provider_requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/terraform-schema/module"
"github.com/opentofu/opentofu-schema/module"
"github.com/zclconf/go-cty/cty"
)

Expand Down
2 changes: 1 addition & 1 deletion earlydecoder/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"strings"

"github.com/hashicorp/terraform-schema/module"
"github.com/opentofu/opentofu-schema/module"
)

type resource struct {
Expand Down
2 changes: 1 addition & 1 deletion earlydecoder/stacks/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sort"

"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/terraform-schema/stack"
"github.com/opentofu/opentofu-schema/stack"
)

func LoadStack(path string, files map[string]*hcl.File) (*stack.Meta, hcl.Diagnostics) {
Expand Down
2 changes: 1 addition & 1 deletion earlydecoder/stacks/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclsyntax"
"github.com/hashicorp/terraform-schema/stack"
"github.com/opentofu/opentofu-schema/stack"
"github.com/zclconf/go-cty-debug/ctydebug"
)

Expand Down
2 changes: 1 addition & 1 deletion earlydecoder/stacks/load_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/ext/typeexpr"
"github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/terraform-schema/stack"
"github.com/opentofu/opentofu-schema/stack"
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/convert"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hashicorp/terraform-schema
module github.com/opentofu/opentofu-schema

go 1.21.0

Expand Down
2 changes: 1 addition & 1 deletion internal/funcs/0.13/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function"

funcs_v0_12 "github.com/hashicorp/terraform-schema/internal/funcs/0.12"
funcs_v0_12 "github.com/opentofu/opentofu-schema/internal/funcs/0.12"
)

func Functions(v *version.Version) map[string]schema.FunctionSignature {
Expand Down
2 changes: 1 addition & 1 deletion internal/funcs/0.14/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function"

funcs_v0_13 "github.com/hashicorp/terraform-schema/internal/funcs/0.13"
funcs_v0_13 "github.com/opentofu/opentofu-schema/internal/funcs/0.13"
)

func Functions(v *version.Version) map[string]schema.FunctionSignature {
Expand Down
2 changes: 1 addition & 1 deletion internal/funcs/0.15/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function"

funcs_v0_14 "github.com/hashicorp/terraform-schema/internal/funcs/0.14"
funcs_v0_14 "github.com/opentofu/opentofu-schema/internal/funcs/0.14"
)

func Functions(v *version.Version) map[string]schema.FunctionSignature {
Expand Down
2 changes: 1 addition & 1 deletion internal/funcs/1.3/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/function"

funcs_v0_15 "github.com/hashicorp/terraform-schema/internal/funcs/0.15"
funcs_v0_15 "github.com/opentofu/opentofu-schema/internal/funcs/0.15"
)

func Functions(v *version.Version) map[string]schema.FunctionSignature {
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.12/connection_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.12/data_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
)

func datasourceBlockSchema(v *version.Version) *schema.BlockSchema {
Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.12/locals_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package schema
import (
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.12/module_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package schema
import (
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.12/output_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package schema
import (
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.12/provider_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.12/provisioner_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
)

func ProvisionerBlock(v *version.Version) *schema.BlockSchema {
Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.12/resource_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/schema/0.12/terraform_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/backends"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/backends"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.12/variable_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.13/module_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/hashicorp/hcl-lang/schema"
"github.com/zclconf/go-cty/cty"

"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
)

func moduleBlockSchema() *schema.BlockSchema {
Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.13/provider_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/hashicorp/hcl-lang/schema"
"github.com/zclconf/go-cty/cty"

"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
)

func providerBlockSchema() *schema.BlockSchema {
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.13/provisioners.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/schema"

v012_mod "github.com/hashicorp/terraform-schema/internal/schema/0.12"
v012_mod "github.com/opentofu/opentofu-schema/internal/schema/0.12"
)

// See https://github.com/hashicorp/terraform/blob/v0.13.0/command/internal_plugin_list.go
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.13/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/schema"

v012_mod "github.com/hashicorp/terraform-schema/internal/schema/0.12"
v012_mod "github.com/opentofu/opentofu-schema/internal/schema/0.12"
)

var v0_13_4 = version.Must(version.NewVersion("0.13.4"))
Expand Down
6 changes: 3 additions & 3 deletions internal/schema/0.13/terraform_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/backends"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/backends"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.14/provisioners.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/schema"

v013_mod "github.com/hashicorp/terraform-schema/internal/schema/0.13"
v013_mod "github.com/opentofu/opentofu-schema/internal/schema/0.13"
)

// See https://github.com/hashicorp/terraform/blob/v0.14.0/command/internal_plugin_list.go
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.14/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/schema"

v013_mod "github.com/hashicorp/terraform-schema/internal/schema/0.13"
v013_mod "github.com/opentofu/opentofu-schema/internal/schema/0.13"
)

func ModuleSchema(v *version.Version) *schema.BodySchema {
Expand Down
6 changes: 3 additions & 3 deletions internal/schema/0.14/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/backends"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/backends"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
"github.com/zclconf/go-cty/cty"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/schema/0.14/variable_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/hashicorp/hcl-lang/schema"
"github.com/zclconf/go-cty/cty"

"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/hashicorp/terraform-schema/internal/schema/tokmod"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/tokmod"
)

func variableBlockSchema() *schema.BlockSchema {
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.15/connection_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/hcl-lang/schema"
"github.com/zclconf/go-cty/cty"

v014_mod "github.com/hashicorp/terraform-schema/internal/schema/0.14"
v014_mod "github.com/opentofu/opentofu-schema/internal/schema/0.14"
)

func ConnectionDependentBodies(v *version.Version) map[schema.SchemaKey]*schema.BodySchema {
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.15/provisioners.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/schema"

v014_mod "github.com/hashicorp/terraform-schema/internal/schema/0.14"
v014_mod "github.com/opentofu/opentofu-schema/internal/schema/0.14"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.15/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/schema"

v014_mod "github.com/hashicorp/terraform-schema/internal/schema/0.14"
v014_mod "github.com/opentofu/opentofu-schema/internal/schema/0.14"
)

func ModuleSchema(v *version.Version) *schema.BodySchema {
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/0.15/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package schema
import (
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
"github.com/zclconf/go-cty/cty"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/schema/1.1/moved.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package schema
import (
"github.com/hashicorp/hcl-lang/lang"
"github.com/hashicorp/hcl-lang/schema"
"github.com/hashicorp/terraform-schema/internal/schema/refscope"
"github.com/opentofu/opentofu-schema/internal/schema/refscope"
)

var movedBlockSchema = &schema.BlockSchema{
Expand Down
2 changes: 1 addition & 1 deletion internal/schema/1.1/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/hashicorp/go-version"
"github.com/hashicorp/hcl-lang/schema"

v015_mod "github.com/hashicorp/terraform-schema/internal/schema/0.15"
v015_mod "github.com/opentofu/opentofu-schema/internal/schema/0.15"
)

func ModuleSchema(v *version.Version) *schema.BodySchema {
Expand Down
Loading

0 comments on commit 99f895a

Please sign in to comment.