nats-io / terraform-provider-jetstream

Terraform Provider to manage NATS JetStream
Apache License 2.0
55 stars 13 forks source link

Does not work on darwin_arm64 #55

Closed ephess closed 2 years ago

ephess commented 2 years ago

Hi,

This terraform provider doesn't seem to work on darwin_arm64 (M1) macs, see this error:

> nats % terraform init

Initializing the backend...

Initializing provider plugins...
- Finding latest version of nats-io/jetstream...
╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/nats-io/jetstream v0.0.31 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.

The config I'm using is:

main.tf:

terraform {
  required_providers {
    jetstream = {
      source  = "nats-io/jetstream"
    }
  }
}

provider "jetstream" {
  servers = "localhost:4222"
}
ripienaar commented 2 years ago

https://github.com/nats-io/terraform-provider-jetstream/pull/58

mikenabhan commented 2 years ago

This still does not appear to be fixed, does the version number have to be incremented for the TF registry to pick it up?

I get the same:


terraform init

Initializing the backend...

Initializing provider plugins...
- Finding nats-io/jetstream versions matching "0.0.31"...
╷
│ Error: Incompatible provider version
│
│ Provider registry.terraform.io/nats-io/jetstream v0.0.31 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.
╵

Manually installing the provider in the expected directory also does not change this
ripienaar commented 2 years ago

Yes, next release will resolve which should be this or next week