Skip to content

Commit 54728a8

Browse files
fix: improve README for local run (#370)
1 parent d72e2e1 commit 54728a8

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,28 @@ $ make build
6565
To then locally test:
6666

6767
```sh
68-
$ cp terraform-provider-commercetools_${LOCAL_TEST_VERSION} ~/.terraform.d/plugins/local/labd/commercetools/${LOCAL_TEST_VERSION}/${OS_ARCH}/terraform-provider-commercetools_${LOCAL_TEST_VERSION}
68+
$ cd $GOPATH/src/github.com/labd/terraform-provider-commercetools
69+
$ make build-local
70+
```
71+
A build is created `terraform-provider-commercetools_99.0.0` in the root directory and added to plugin folder available locally:
72+
```sh
73+
~/.terraform.d/plugins/local/labd/commercetools/99.0.0/${OS_ARCH}/terraform-provider-commercetools_v99.0.0
6974
```
7075

76+
Use version `99.0.0` in the provider to test your changes locally
77+
78+
```hcl
79+
terraform {
80+
required_providers {
81+
commercetools = {
82+
source = "labd/commercetools"
83+
version = "99.0.0"
84+
}
85+
}
86+
}
87+
```
88+
89+
7190
## Adding new resources
7291
When commercetools releases new features which include new resources these need to be implemented
7392
in terraform as new resources too. This provider is currently undergoing a migration path to

0 commit comments

Comments
 (0)