0.13-rc1 and local providers

I’ve been working with the release candidate of 0.13 to update our repos ahead of the final version, and I’ve hit some issues with discovering local providers. This is my provider declaration:

terraform {
  required_providers {
    aws = {
      source = "hashicorp/aws"
    }
    gotemplate = {
      source   = "mycorp.io/dept/gotemplate"
      versions = ["1.0.0"]
    }
  }
  required_version = ">= 0.13"
}

The plugin exists at:

.terraform.d/plugins/mycorp.io/dept/gotemplate/1.0.0/linux_amd64/terraform-provider-gotemplate_v1.0.0

The plugins directory in .terraform in the module looks ok:

.terraform/plugins/
├── mycorp.io
│   └── dept
│       └── gotemplate
│           └── 1.0.0
│               └── linux_amd64 -> /home/user/.terraform.d/plugins/mycorp.io/dept/gotemplate/1.0.0/linux_amd64
├── registry.terraform.io
│   ├── -
│   │   └── aws
│   │       └── 3.0.0
│   │           └── linux_amd64
│   │               └── terraform-provider-aws_v3.0.0_x5
│   └── hashicorp
│       └── aws
│           └── 2.32.0
│               └── linux_amd64
│                   └── terraform-provider-aws_v2.32.0_x4
└── selections.json

And selections.json:

{
  "mycorp.io/dept/gotemplate": {
    "hash": "h1:zbHsveJzwz4UMUfJnGz/gZaaWaqn9r2+q1EMe6e+Obk=",
    "version": "1.0.0"
  },
  "registry.terraform.io/-/aws": {
    "hash": "h1:ULKfwySvQ4pDhy027ryRhLxDhg640wsojYc+7NHMFBU=",
    "version": "3.0.0"
  },
  "registry.terraform.io/hashicorp/aws": {
    "hash": "h1:BMe86mXSwcAgchNS2e8yLfSbgWn2zyXw0w+BO/FvHHo=",
    "version": "2.32.0"
  }
}

Any suggestions as to what I’m missing? I’m running this against an existing state file, if that makes any difference.

Hi! We are having the same problem when going from 0.12 to 0.13. Do you remember how you solved it?

Hi @mdanielolsson,

I’m not sure what the original issue was, or what problem you are having, but the Provider Installation documentation may help clarify some aspects of managing local providers.

If you still have questions, I suggest creating a new topic with all the details about the problem you are facing.