Skip to content

Commit

Permalink
Update go mod package name
Browse files Browse the repository at this point in the history
This is required to enable updating the Pulumi provider automatically based on the Terraform provider. It looks for the Go package of this provider, which we don't have yet for v2.
  • Loading branch information
edif2008 committed Aug 20, 2024
1 parent c6e0ebd commit b8d3e95
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 10 deletions.
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/1Password/terraform-provider-onepassword
module github.com/1Password/terraform-provider-onepassword/v2

go 1.21

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw=
golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
Expand Down
2 changes: 1 addition & 1 deletion internal/onepassword/cli/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"

"github.com/1Password/connect-sdk-go/onepassword"
"github.com/1Password/terraform-provider-onepassword/version"
"github.com/1Password/terraform-provider-onepassword/v2/version"
"github.com/Masterminds/semver/v3"
"github.com/hashicorp/terraform-plugin-log/tflog"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/onepassword/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"errors"

"github.com/1Password/connect-sdk-go/onepassword"
"github.com/1Password/terraform-provider-onepassword/internal/onepassword/cli"
"github.com/1Password/terraform-provider-onepassword/internal/onepassword/connect"
"github.com/1Password/terraform-provider-onepassword/v2/internal/onepassword/cli"
"github.com/1Password/terraform-provider-onepassword/v2/internal/onepassword/connect"
)

// Client is a subset of connect.Client with context added.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/onepassword_item_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/hashicorp/terraform-plugin-log/tflog"

op "github.com/1Password/connect-sdk-go/onepassword"
"github.com/1Password/terraform-provider-onepassword/internal/onepassword"
"github.com/1Password/terraform-provider-onepassword/v2/internal/onepassword"
)

// Ensure provider defined types fully satisfy framework interfaces.
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/onepassword_item_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import (
"github.com/hashicorp/go-uuid"

op "github.com/1Password/connect-sdk-go/onepassword"
"github.com/1Password/terraform-provider-onepassword/internal/onepassword"
"github.com/1Password/terraform-provider-onepassword/internal/onepassword/util"
"github.com/1Password/terraform-provider-onepassword/v2/internal/onepassword"
"github.com/1Password/terraform-provider-onepassword/v2/internal/onepassword/util"
)

// Ensure provider defined types fully satisfy framework interfaces.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/onepassword_vault_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/terraform-plugin-log/tflog"

op "github.com/1Password/connect-sdk-go/onepassword"
"github.com/1Password/terraform-provider-onepassword/internal/onepassword"
"github.com/1Password/terraform-provider-onepassword/v2/internal/onepassword"
)

// Ensure provider defined types fully satisfy framework interfaces.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/types"

"github.com/1Password/terraform-provider-onepassword/internal/onepassword"
"github.com/1Password/terraform-provider-onepassword/v2/internal/onepassword"
)

// Ensure ScaffoldingProvider satisfies various provider interfaces.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"flag"
"log"

"github.com/1Password/terraform-provider-onepassword/internal/provider"
"github.com/1Password/terraform-provider-onepassword/v2/internal/provider"
"github.com/hashicorp/terraform-plugin-framework/providerserver"
)

Expand Down

0 comments on commit b8d3e95

Please sign in to comment.