IBM-Cloud / terraform-provider-ibm

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs
Mozilla Public License 2.0
340 stars 667 forks source link

feat: add build-local target for easing local development #5423

Closed shuaibbapputty closed 3 months ago

shuaibbapputty commented 3 months ago

Community Note

Relates OR Closes #0000

Output from make build-local:

$ make build-local

==> Checking that code complies with gofmt requirements...
go vet .
go install
mkdir -p /Users/shuaib/.terraform.d/plugins/registry.terraform.io/ibm-cloud/ibm/0.0.1/darwin_arm64
mv /Users/shuaib/go/bin/terraform-provider-ibm /Users/shuaib/.terraform.d/plugins/registry.terraform.io/ibm-cloud/ibm/0.0.1/darwin_arm64/terraform-provider-ibm_v0.0.1
./scripts/post-build.sh 0.0.1

==> Updating /Users/shuaib/.terraformrc file...

⬇ Add the following to your Terraform configuration:

terraform {
  required_providers {
    ibm = {
      source  = "IBM-Cloud/ibm"
      version = "0.0.1"
    }
  }
}
...
shuaibbapputty commented 3 months ago

Tested locally in darwin_arm64 os arch

Running make command

image

Using the given terraform configuration to install the locally build provider

image