Identifying where providers are declared

I have been tasked to replace the Template v2.2.0 provider from our Terraform code since it’s deprecated and doesn’t support Apple M Chips.

I’ve looked at Template v2.2.0 does not have a package available - Mac M1

  • Removed references to template_file from the terraform code.
  • Deleted the provider from .terraform.lock.hcl
  • Run terraform init --upgrade

However it still goes at fetches the Template provider. Is there any way to track down why/where this is being called from?