Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Silicon not supported #14

Open
scottrobertson opened this issue Mar 30, 2022 · 1 comment
Open

Apple Silicon not supported #14

scottrobertson opened this issue Mar 30, 2022 · 1 comment

Comments

@scottrobertson
Copy link

Unable to run this on Apple Silicon.

│ Error: Incompatible provider version
│ Provider registry.terraform.io/splunk/victorops v0.1.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.
@pauldoomgov
Copy link

Till they build for darwin_arm64, here are notes on building the module.

mkdir -p ~/go/src/github.com/splunk
cd ~/go/src/github.com/splunk
git clone [email protected]:splunk/terraform-provider-victorops.git
cd terraform-provider-victorops/
# Checkout the latest tagged version
git checkout v0.1.4
# x/sys that ships with go1.18 is busted - Upgrade it
got get -u golang.or/x/sys
go build
mkdir -p ~/.terraform.d/plugins/github.com/splunk/terraform-provider-victorops/0.1.4/darwin_arm64/
cp terraform-provider-victorops ~/.terraform.d/plugins/github.com/splunk/terraform-provider-victorops/0.1.4/darwin_arm64/

And then your provider block should look like:

terraform {
  required_providers {
    victorops = {
      source  = "splunk/victorops"
      version = "0.1.4"
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants