Skip to content

Commit

Permalink
Thisrohangupta patch 1 (#782)
Browse files Browse the repository at this point in the history
* Update README.md 

Updated Readme with build and test local instructions

* Update README.md
  • Loading branch information
thisrohangupta committed Nov 27, 2023
1 parent 3c4ed26 commit e13f18a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,26 @@ If you have any questions please open a [new issue](https://github.com/harness/t
Full, comprehensive documentation is available on the Terraform website:

<https://registry.terraform.io/providers/harness/harness/latest/docs>

## Building and Testing Locally

1. Clone the repo into your local directory. Run `git clone https://github.com/harness/terraform-provider-harness.git`
2. Run `go mod tidy`
3. Run `go build -o terraform-provider-harness`
4. Create a file called `local.sh` in the root directory of the repository and copy the following script to the bash file

```SH
#!/bin/sh

version=0.40.2 #specify in this format
source=registry.terraform.io/harness/harnessregistry.terraform.io/harness/harness
platform=darwin_amd64

mkdir -p ~/.terraform.d/plugins/$source/$version/$platform/

cp terraform-provider-harness ~/.terraform.d/plugins/$source/$version/$platform/terraform-provider-harness
```

5. Run the Bash Script `./local.sh`

*Note: Please make sure the terraform provider version matches the version in the script*

0 comments on commit e13f18a

Please sign in to comment.