Skip to content

Commit

Permalink
Switch to the new minimal terraform-registry-address API
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Jun 13, 2022
1 parent 01a1aae commit 1e84c15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -8,7 +8,7 @@ require (
github.com/hashicorp/go-plugin v1.4.4
github.com/hashicorp/go-uuid v1.0.3
github.com/hashicorp/terraform-plugin-log v0.4.1
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896
github.com/hashicorp/terraform-registry-address v0.0.0-20220610213838-4b195be62a2c
github.com/mitchellh/go-testing-interface v1.14.1
github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce
github.com/vmihailenco/msgpack/v4 v4.3.12
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Expand Up @@ -66,8 +66,8 @@ github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/b
github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/terraform-plugin-log v0.4.1 h1:xpbmVhvuU3mgHzLetOmx9pkOL2rmgpu302XxddON6eo=
github.com/hashicorp/terraform-plugin-log v0.4.1/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4=
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896 h1:1FGtlkJw87UsTMg5s8jrekrHmUPUJaMcu6ELiVhQrNw=
github.com/hashicorp/terraform-registry-address v0.0.0-20210412075316-9b2996cce896/go.mod h1:bzBPnUIkI0RxauU8Dqo+2KrZZ28Cf48s8V6IHt3p4co=
github.com/hashicorp/terraform-registry-address v0.0.0-20220610213838-4b195be62a2c h1:0cc3Lrc+A3fg/Gk10bPiTiD1imahActENCZCQAVGgLo=
github.com/hashicorp/terraform-registry-address v0.0.0-20220610213838-4b195be62a2c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI=
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0=
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg=
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb h1:b5rjCoWHc7eqmAS4/qyk21ZsHyb6Mxv/jykxvNTkU4M=
Expand Down
3 changes: 1 addition & 2 deletions internal/logging/provider.go
Expand Up @@ -8,8 +8,7 @@ import (
)

func ProviderLoggerName(providerAddress string) string {
provider, err := tfaddr.ParseRawProviderSourceString(providerAddress)

provider, err := tfaddr.ParseProviderSource(providerAddress)
if err != nil {
log.Printf("[ERROR] Error parsing provider name %q: %s", providerAddress, err)
return ""
Expand Down

0 comments on commit 1e84c15

Please sign in to comment.