Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected 'undefined: tfsdklog.SubsystemWith' Compilation Errors #1004

Closed
bflad opened this issue Jul 15, 2022 · 2 comments · Fixed by #1003
Closed

Unexpected 'undefined: tfsdklog.SubsystemWith' Compilation Errors #1004

bflad opened this issue Jul 15, 2022 · 2 comments · Fixed by #1003
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@bflad
Copy link
Member

bflad commented Jul 15, 2022

SDK version

v2.18.0

Expected Behavior

Provider code to compile correctly

Actual Behavior

Compilation errors such as:

# github.com/hashicorp/terraform-plugin-sdk/v2/internal/logging
Error: ../../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/internal/logging/context.go:51:8: undefined: tfsdklog.SubsystemWith
Error: ../../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/internal/logging/context.go:58:8: undefined: tfsdklog.SubsystemWith
Error: ../../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/internal/logging/context.go:65:8: undefined: tfsdklog.SubsystemWith
Error: ../../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.18.0/internal/logging/context.go:72:8: undefined: tfsdklog.SubsystemWith

Steps to Reproduce

  1. go test or go build

References

@bflad bflad added the dependencies Pull requests that update a dependency file label Jul 15, 2022
@bflad bflad added this to the v2.19.0 milestone Jul 15, 2022
@bflad
Copy link
Member Author

bflad commented Jul 15, 2022

The cause of this issue is breaking changes in the terraform-plugin-log version 0.6.0 release. To fix your provider codebase until the terraform-plugin-sdk version 2.19.0 release has been made, run the following commands in the root directory of the provider codebase to use the prior version of terraform-plugin-log:

go get github.com/hashicorp/terraform-plugin-log@v0.5.0
go mod tidy

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
1 participant