wgebis / terraform-provider-mailgun

Mozilla Public License 2.0
24 stars 20 forks source link

Add support for darwin_arm64 arch (aka Apple Silicon Macs) #28

Closed jeffbyrnes closed 2 years ago

jeffbyrnes commented 2 years ago

Terraform Version

Terraform v1.0.11
on darwin_arm64

Affected Resource(s)

Terraform Configuration Files

terraform {
  required_version = ">= 1.0"

  required_providers {
    mailgun = {
      source  = "wgebis/mailgun"
      version = "~> 0.5"
    }
  }
}

Debug Output

│ Error: Incompatible provider version
│
│ Provider registry.terraform.io/wgebis/mailgun v0.7.1 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.

Expected Behavior

Terraform installed the malign provider

Actual Behavior

Terraform errored due to a lack of compatible architecture build.

Steps to Reproduce

  1. terraform init

References

jeffbyrnes commented 2 years ago

Happy to help with this, if I can, just not very familiar with building & releasing Go artifacts!

rvanoo commented 2 years ago

Put up a PR for this that I think should resolve this https://github.com/wgebis/terraform-provider-mailgun/pull/29

tpoindessous commented 2 years ago

Hi ! Everything seems OK for you @rvanoo @jeffbyrnes , so maybe a maintainer could, please, accept this MR and release a new version ?

Thanks !

wgebis commented 2 years ago

Hope I'll do it soon! Thanks!

cubiclelord commented 2 years ago

I'd love to see this released soon, if possible :)

jon-eicher commented 2 years ago

Yes, please merge this. Highly useful.

wgebis commented 2 years ago

@jon-eicher i have bumped v0.7.2 with these changes. Let me know if it works for you 👍. Cheers!

timsmelik commented 2 years ago

A bit late to the party, but I can confirm it seems to have fixed the problem, I have no issues running it. Thanks!

timsmelik@Tims-MacBook-Pro ~/d/terraform-test> bat main.tf
───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: main.tf
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ terraform {
   2   │   required_version = ">= 1.0"
   3   │
   4   │   required_providers {
   5   │     mailgun = {
   6   │       source  = "wgebis/mailgun"
   7   │       version = "~> 0.5"
   8   │     }
   9   │   }
  10   │ }
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
timsmelik@Tims-MacBook-Pro ~/d/terraform-test> terraform init

Initializing the backend...

Initializing provider plugins...
- Finding wgebis/mailgun versions matching "~> 0.5"...
- Installing wgebis/mailgun v0.7.2...
- Installed wgebis/mailgun v0.7.2 (self-signed, key ID AC6F84CFFA6CA0F9)

Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
wgebis commented 2 years ago

Hi folks! From 0.7.2 version arm64 version is available, let me know if something will not work for you. 👍