Closed brownwk closed 8 months ago
Hi @brownwk 👋 Thank you for raising this issue and sorry for the trouble! I will look into the current state of the hashicups
tutorial repository to prevent this for others in the future, but this appears to be related to some co-dependent github.com/hashicorp/terraform-plugin-*
Go module updates that need to occur within that repository or the tutorial instructions.
To immediately unblock you, can you try running the following from inside the hashicups repository directory:
go get github.com/hashicorp/terraform-plugin-framework@v1.6.1
go mod tidy
This will update the terraform-plugin-framework dependency to the latest version, which should still work as expected with the tutorial, while also resolving the Go errors.
Please let us know! Thank you.
Hi again, @brownwk 👋
The terraform-provider-hashicups repository has had its main
branch and all tutorial-associated branches updated with the latest versions of terraform-plugin-* Go modules, which should prevent this problem going forward. You should now be able to either run the commands in my previous comment or pull down the latest commits to get those updates that should prevent the errors you saw.
Since this should be resolved now and there is nothing actionable in this repository, I'm going to close this issue, but please do reach out if you are still having trouble. Thanks!
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.
Module version
Relevant provider source code
Terraform Configuration Files
Debug Output
Expected Behavior
go should be able to perform a test of the data provider
Actual Behavior
TF_ACC=1 go test -count=1 -v
github.com/hashicorp/terraform-plugin-framework/internal/toproto6
../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.5.0/internal/toproto6/callfunction.go:21:3: unknown field Diagnostics in struct literal of type tfprotov6.CallFunctionResponse ../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.5.0/internal/toproto6/callfunction.go:26:35: proto.Diagnostics undefined (type tfprotov6.CallFunctionResponse has no field or method Diagnostics) ../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.5.0/internal/toproto6/diagnostics.go:39:24: tfprotov6Diagnostic.FunctionArgument undefined (type tfprotov6.Diagnostic has no field or method FunctionArgument)
github.com/hashicorp/terraform-plugin-framework/internal/toproto5
../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.5.0/internal/toproto5/callfunction.go:21:3: unknown field Diagnostics in struct literal of type tfprotov5.CallFunctionResponse ../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.5.0/internal/toproto5/callfunction.go:26:35: proto.Diagnostics undefined (type tfprotov5.CallFunctionResponse has no field or method Diagnostics) ../../../go/pkg/mod/github.com/hashicorp/terraform-plugin-framework@v1.5.0/internal/toproto5/diagnostics.go:39:24: tfprotov5Diagnostic.FunctionArgument undefined (type tfprotov5.Diagnostic has no field or method FunctionArgument) FAIL terraform-provider-hashicups-pf/internal/provider [build failed]
Steps to Reproduce
Please list the full steps required to reproduce the issue, for example: