You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ terraform plan
╷
│ Warning: Provider development overrides are in effect
│
│ The following provider development overrides are setin the CLI configuration:
│ - spkane/todo in /Users/spkane/dev/spkane/terraform-provider-todo
│
│ The behavior may therefore not match any released version of the provider and applying changes may cause the state to become incompatible with published
│ releases.
╵
╷
│ Error: Data Source Type Not Found
│
│ with data.todo_todo.foreign,
│ on main.tf line 17, in data "todo_todo""foreign":
│ 17: data "todo_todo""foreign" {
│
│ No data sourcetype named "todo_todo" was found in the provider.
╵
╷
│ Error: Resource Type Not Found
│
│ with todo_todo.test1,
│ on main.tf line 21, in resource "todo_todo""test1":
│ 21: resource "todo_todo""test1" {
│
│ No resource type named "todo_todo" was found in the provider.
╵
From what I can tell this might be due to 1.6.0 no longer asking for the provider schema and the related changes. #33486
I think that I might need to set get_provider_schema_optional via ServerCapabilities, but honestly I wasn't sure how to go about that, or if there was some other issue that was leading to this.
Any pointers would be appreciated if the issue is in the provider.
I could not find any documentation besides the code, on using ServerCapabilities properly.
Steps to Reproduce
docker compose up -d # spin up the API server locally.
terraform init
terraform apply
Additional Context
Not really. The same results occur using provider version 2.0.4 on the registry or using a local dev copy (which I was using when I wrote up this issue).
I also was using a local copy of the simple API, running in a container, to test things.
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.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/spkane/61273fc4b7bc130d03df7bf1af5c4982
Expected Behavior
The provider
spkane/todo
v2.0.4 works fine with Terraform 1.5.7. I would expect it to continue to work with Terraform 1.6.0.Actual Behavior
From what I can tell this might be due to 1.6.0 no longer asking for the provider schema and the related changes. #33486
I think that I might need to set
get_provider_schema_optional
viaServerCapabilities
, but honestly I wasn't sure how to go about that, or if there was some other issue that was leading to this.Any pointers would be appreciated if the issue is in the provider.
I could not find any documentation besides the code, on using ServerCapabilities properly.
Steps to Reproduce
docker compose up -d
# spin up the API server locally.terraform init
terraform apply
Additional Context
Not really. The same results occur using provider version 2.0.4 on the registry or using a local dev copy (which I was using when I wrote up this issue).
I also was using a local copy of the simple API, running in a container, to test things.
References
#33486
The text was updated successfully, but these errors were encountered: