ok interesting. for some reason running the debug in goland reset the terraform process. Its working now.
i’m not sure what I did to fix it, but my code was correct. I guess the older version got cached or something.
I ended up deleteing the terraform-provider-hashicups binary which gets put in the golang/go/bin directory and reran the “go install .” command
So maybe it forced it to update the binary file.
After that I was running into some schema loading issue.
Error: Failed to load plugin schemas
│
│ Error while loading schemas for plugin components: Failed to obtain provider
│ schema: Could not load the schema for provider hashicorp.com/edu/hashicups:
│ failed to instantiate provider "hashicorp.com/edu/hashicups" to obtain
│ schema: Reattachment process not found..
I had to unset the TF_REATTACH_PROVIDERS variable for it to load the schema in the regular terraform commandline process.
I did find that setting TF_LOG=DEBUG environment variable was helpful as well.