Skip to content

Commit

Permalink
Make local development working
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewo committed Jul 30, 2022
1 parent 1e3e2cc commit cdf6a6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WEBSITE_REPO=github.com/hashicorp/terraform-website
PKG_NAME=gandi
GO_PLATFORM=$(subst /, ,$(word 4, $(shell go version)))
TF_PLATFORM=$(word 1, $(GO_PLATFORM))_$(word 2, $(GO_PLATFORM))
VERSION=2.0.0-rc3
VERSION=2.0.1

default: fmtcheck build

Expand Down Expand Up @@ -52,8 +52,8 @@ test-compile:
go test -c $(TEST) $(TESTARGS)

install: default
@install -d $(HOME)/.terraform.d/plugins/github/go-gandi/gandi/$(VERSION)/$(TF_PLATFORM)
@install -m 755 terraform-provider-gandi $(HOME)/.terraform.d/plugins/github/go-gandi/gandi/$(VERSION)/$(TF_PLATFORM)/
@install -d $(HOME)/.terraform.d/plugins/registry.terraform.io/go-gandi/gandi/$(VERSION)/$(TF_PLATFORM)
@install -m 755 terraform-provider-gandi $(HOME)/.terraform.d/plugins/registry.terraform.io/go-gandi/gandi/$(VERSION)/$(TF_PLATFORM)/

website:
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ If you wish to work on the provider, you'll first need [Go](http://www.golang.or

To compile the provider, run `make`.

To use the provider, run `make install` to populate your local
Terraform provider cache
(`$(HOME)/.terraform.d/plugins/registry.terraform.io`). On a next
`terraform init`, Terraform then picks the provider from this directory.

### Linting

We use [pre-commit](https://pre-commit.com/) to manage and maintain the pre-commit hooks, you can follow the [official instructions](https://pre-commit.com/#install) to install it.
Expand Down

0 comments on commit cdf6a6d

Please sign in to comment.