Terraform init with local provider

I miss a question that I need to install provider form a local path "/data/providers/hashicorp/azurerm/3.62.1/linux_amd64/terraform-provider-azurerm_v3.62.1_x5 "
When I run terraform init, it show that:
Initializing provider plugins…

  • Finding providers/hashicorp/azurerm versions matching “3.62.1”…
  • Finding latest version of hashicorp/azurerm…

    │ Error: Failed to query available provider packages

    │ Could not retrieve the list of available versions for provider providers/hashicorp/azurerm: could not connect to providers: failed to request discovery document: Get
    │ “https://providers/.well-known/terraform.json”: Unknown Host


│ Error: Failed to query available provider packages

│ Could not retrieve the list of available versions for provider hashicorp/azurerm: could not connect to registry.terraform.io: failed to request discovery document: Get
│ “https://registry.terraform.io/.well-known/terraform.json”: x509: certificate signed by unknown authority

How can I solve this question?

This is my main.tf
terraform {
required_providers {
azurerm = {
source = “providers/hashicorp/azurerm”
version = “3.62.1”
}
}
}

this is my .terraform.rc, put in my path “/home/pipeline/”
provider_installation {
dev_overrides {
“providers/hashicorp/azurerm” = “/data/providers/hashicorp/azurerm”
}
filesystem_mirror {
path = “/data/providers”
include = [“providers//”]

path = “/data/providers”

}
direct {
exclude = [“providers//”]
}
}

Hi @781058829,

dev_overrides is not used by init when doing local development, so any errors returned by init for that provider can be ignored.