diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c242ab34..02afaa45 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,9 +20,10 @@ Clone `terraform-provider-docker` anywhere: git clone git@github.com:kreuzwerker/terraform-provider-docker.git ``` -Install the build dependencies: +Install the build dependencies, tools and commit message validation: ```sh +make setup make build ``` diff --git a/GNUmakefile b/GNUmakefile index 025f3ecd..0bbda461 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -12,6 +12,9 @@ setup: cd tools && GO111MODULE=on go install github.com/client9/misspell/cmd/misspell cd tools && GO111MODULE=on go install github.com/katbyte/terrafmt cd tools && GO111MODULE=on go install github.com/golangci/golangci-lint/cmd/golangci-lint + rm -f .git/hooks/commit-msg \ + && curl --fail -o .git/hooks/commit-msg https://raw.githubusercontent.com/hazcod/semantic-commit-hook/master/commit-msg \ + && chmod 500 .git/hooks/commit-msg golangci-lint: @golangci-lint run ./$(PKG_NAME)/... diff --git a/README.md b/README.md index bb7c05e5..a7ae670d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## Requirements -- [Terraform](https://www.terraform.io/downloads.html) 0.12.x +- [Terraform](https://www.terraform.io/downloads.html) >=0.12.x - [Go](https://golang.org/doc/install) 1.15.x (to build the provider plugin) ## Building The Provider