Skip to content

Commit

Permalink
Update go mod package name (#193)
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 authored Aug 22, 2024
1 parent d2d2390 commit f0e095c
Show file tree
Hide file tree
Showing 8 changed files with 10 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: 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 f0e095c

Please sign in to comment.