Example use case with template:
│ Error: Incompatible provider version
│
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
│
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider
│ may have different platforms supported.
│
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
│
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider
│ may have different platforms supported.
Solution
For this use case, download the source code https://github.com/hashicorp/terraform-provider-template/releases/tag/v2.2.0 and build it.
% make
==> Checking that code complies with gofmt requirements...
==> Checking that code complies with gofmt requirements...
go install
go: downloading github.com/hashicorp/terraform v0.12.0-alpha4.0.20190424121927-9327eedb0417
go: downloading github.com/hashicorp/hcl2 v0.0.0-20190416162332-2c5a4b7d729a
go: downloading github.com/zclconf/go-cty v0.0.0-20190320224746-fd76348b9329
go: downloading github.com/hashicorp/terraform v0.12.0-alpha4.0.20190424121927-9327eedb0417
go: downloading github.com/hashicorp/hcl2 v0.0.0-20190416162332-2c5a4b7d729a
go: downloading github.com/zclconf/go-cty v0.0.0-20190320224746-fd76348b9329
go: downloading github.com/agext/levenshtein v1.2.2
go: downloading github.com/apparentlymart/go-textseg v1.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
go: downloading github.com/hashicorp/go-hclog v0.0.0-20181001195459-61d530d6c27f
go: downloading github.com/hashicorp/go-plugin v0.0.0-20190322172744-52e1c4730856
go: downloading google.golang.org/grpc v1.18.0
go: downloading github.com/mitchellh/go-homedir v1.0.0
go: downloading github.com/hashicorp/go-multierror v1.0.0
go: downloading github.com/mitchellh/copystructure v1.0.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/apparentlymart/go-textseg v1.0.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
go: downloading github.com/hashicorp/go-hclog v0.0.0-20181001195459-61d530d6c27f
go: downloading github.com/hashicorp/go-plugin v0.0.0-20190322172744-52e1c4730856
go: downloading google.golang.org/grpc v1.18.0
go: downloading github.com/mitchellh/go-homedir v1.0.0
go: downloading github.com/hashicorp/go-multierror v1.0.0
go: downloading github.com/mitchellh/copystructure v1.0.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/apparentlymart/go-cidr v1.0.0
go: downloading github.com/hashicorp/go-uuid v1.0.1
go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: downloading golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: downloading github.com/golang/protobuf v1.3.0
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading github.com/hashicorp/go-getter v1.1.0
go: downloading github.com/hashicorp/go-version v1.1.0
go: downloading github.com/mitchellh/cli v1.0.0
go: downloading github.com/hashicorp/go-uuid v1.0.1
go: downloading golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: downloading golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: downloading github.com/golang/protobuf v1.3.0
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading github.com/hashicorp/go-getter v1.1.0
go: downloading github.com/hashicorp/go-version v1.1.0
go: downloading github.com/mitchellh/cli v1.0.0
go: downloading github.com/vmihailenco/msgpack v4.0.1+incompatible
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590
go: downloading github.com/mitchellh/reflectwalk v1.0.0
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/mitchellh/hashstructure v1.0.0
go: downloading github.com/hashicorp/go-cleanhttp v0.5.0
go: downloading github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb
go: downloading github.com/mitchellh/go-testing-interface v1.0.0
go: downloading github.com/oklog/run v1.0.0
go: downloading github.com/aws/aws-sdk-go v1.16.36
go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
go: downloading github.com/hashicorp/go-safetemp v1.0.0
go: downloading github.com/ulikunitz/xz v0.5.5
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/hashicorp/hil v0.0.0-20190212112733-ab17b08d6590
go: downloading github.com/mitchellh/reflectwalk v1.0.0
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/mitchellh/hashstructure v1.0.0
go: downloading github.com/hashicorp/go-cleanhttp v0.5.0
go: downloading github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb
go: downloading github.com/mitchellh/go-testing-interface v1.0.0
go: downloading github.com/oklog/run v1.0.0
go: downloading github.com/aws/aws-sdk-go v1.16.36
go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
go: downloading github.com/hashicorp/go-safetemp v1.0.0
go: downloading github.com/ulikunitz/xz v0.5.5
go: downloading github.com/armon/go-radix v1.0.0
go: downloading github.com/bgentry/speakeasy v0.1.0
go: downloading github.com/fatih/color v1.7.0
go: downloading github.com/mattn/go-isatty v0.0.5
go: downloading github.com/posener/complete v1.2.1
go: downloading github.com/spf13/afero v1.2.1
go: downloading github.com/mattn/go-colorable v0.1.1
go: downloading github.com/bgentry/speakeasy v0.1.0
go: downloading github.com/fatih/color v1.7.0
go: downloading github.com/mattn/go-isatty v0.0.5
go: downloading github.com/posener/complete v1.2.1
go: downloading github.com/spf13/afero v1.2.1
go: downloading github.com/mattn/go-colorable v0.1.1
go: downloading github.com/google/go-cmp v0.2.0
go: downloading google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922
go: downloading github.com/jmespath/go-jmespath v0.0.0-2018
% go build -o terraform-provider-template
% mkdir -p ~/.terraform.d/plugins/hashicorp.com/template/2.2.0/darwin_amd64
% mv terraform-provider-template ~/.terraform.d/plugins/hashicorp.com/template/2.2.0/darwin_arm64
go: downloading google.golang.org/genproto v0.0.0-20190201180003-4b09977fb922
go: downloading github.com/jmespath/go-jmespath v0.0.0-2018
% go build -o terraform-provider-template
% mkdir -p ~/.terraform.d/plugins/hashicorp.com/template/2.2.0/darwin_amd64
% mv terraform-provider-template ~/.terraform.d/plugins/hashicorp.com/template/2.2.0/darwin_arm64