From b8d3e954468b12a1eca5f1689036c10da21b9a64 Mon Sep 17 00:00:00 2001 From: Eddy Filip Date: Tue, 20 Aug 2024 16:15:24 +0300 Subject: [PATCH] Update go mod package name 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. --- go.mod | 2 +- go.sum | 2 ++ internal/onepassword/cli/op.go | 2 +- internal/onepassword/client.go | 4 ++-- internal/provider/onepassword_item_data_source.go | 2 +- internal/provider/onepassword_item_resource.go | 4 ++-- internal/provider/onepassword_vault_data_source.go | 2 +- internal/provider/provider.go | 2 +- main.go | 2 +- 9 files changed, 12 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 4740c29a..b5aeb865 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/1Password/terraform-provider-onepassword +module github.com/1Password/terraform-provider-onepassword/v2 go 1.21 diff --git a/go.sum b/go.sum index c0e28bf1..730c443d 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/internal/onepassword/cli/op.go b/internal/onepassword/cli/op.go index d4fcc470..b23cd121 100644 --- a/internal/onepassword/cli/op.go +++ b/internal/onepassword/cli/op.go @@ -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" ) diff --git a/internal/onepassword/client.go b/internal/onepassword/client.go index 0265bb12..be874efe 100644 --- a/internal/onepassword/client.go +++ b/internal/onepassword/client.go @@ -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. diff --git a/internal/provider/onepassword_item_data_source.go b/internal/provider/onepassword_item_data_source.go index 3142861f..6c319688 100644 --- a/internal/provider/onepassword_item_data_source.go +++ b/internal/provider/onepassword_item_data_source.go @@ -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. diff --git a/internal/provider/onepassword_item_resource.go b/internal/provider/onepassword_item_resource.go index 4f6096fb..3917894f 100644 --- a/internal/provider/onepassword_item_resource.go +++ b/internal/provider/onepassword_item_resource.go @@ -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. diff --git a/internal/provider/onepassword_vault_data_source.go b/internal/provider/onepassword_vault_data_source.go index f5e28e69..786b4602 100644 --- a/internal/provider/onepassword_vault_data_source.go +++ b/internal/provider/onepassword_vault_data_source.go @@ -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. diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 26e79d43..eb778f33 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -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. diff --git a/main.go b/main.go index 80561401..eefff58e 100644 --- a/main.go +++ b/main.go @@ -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" )