Terraform erroring out on plan due to hashicorp/template

Hello, running terraform 1.5.7, resulting in error

 Error: Incompatible provider version
│ 
│ Provider registry.opentofu.org/hashicorp/template v2.2.0 does not have a
│ package available for your current platform, linux_arm64.

I would like to use templatefile(). However, since state file has this hashicorp/template it’s erroring out in the plan when trying to install this provider.

Is there any way to avoid modifying the state file to update this and not prompt terraform plan to install hashicorp/template provider?

Maybe you could pin it back to an earlier version of the provider?

Or file a provider bug if it’s not expected for there to not be a binary for that version?

Otherwise, you could probably build it from source, but that might create some additional headaches.

The template provider was deprecated long before there were any arm64 releases published, so there is not going to be a compatible version.

If you no longer need the resource, you can manually remove it from the state using the terraform state rm command.