Skip to content

Commit

Permalink
Support build and run azure terraform provider on native Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
metacpp committed Jan 26, 2018
1 parent 999c79d commit 71ea9e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ fmt:
gofmt -w $(GOFMT_FILES)

fmtcheck:
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
@sh "$(CURDIR)/scripts/gofmtcheck.sh"

errcheck:
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"
@sh "$(CURDIR)/scripts/errcheck.sh"

vendor-status:
@govendor status
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ AzureRM Terraform Provider
- [![Gitter chat](https://badges.gitter.im/hashicorp-terraform/Lobby.png)](https://gitter.im/hashicorp-terraform/Lobby)
- Mailing list: [Google Groups](http://groups.google.com/group/terraform-tool)

Requirements
General Requirements
------------

- [Terraform](https://www.terraform.io/downloads.html) 0.10.x
- [Go](https://golang.org/doc/install) 1.9 (to build the provider plugin)

Windows Specific Requirements
-----------------------------
- [Make for Windows](http://gnuwin32.sourceforge.net/packages/make.htm)
- [Git Bash for Windows](https://git-scm.com/download/win)

For *GNU32 Make*, make sure its bin path is added to PATH environment variable.*

For *Git Bash for Windows*, at the step of "Adjusting your PATH environment", please choose "Use Git and optional Unix tools from Windows Command Prompt".*

Building The Provider
---------------------

Expand Down
2 changes: 1 addition & 1 deletion scripts/gofmtcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Check gofmt
echo "==> Checking that code complies with gofmt requirements..."
gofmt_files=$(gofmt -l `find . -name '*.go' | grep -v vendor`)
if [[ -n ${gofmt_files} ]]; then
if [ -n "${gofmt_files}" ]; then
echo 'gofmt needs running on the following files:'
echo "${gofmt_files}"
echo "You can use the command: \`make fmt\` to reformat code."
Expand Down

0 comments on commit 71ea9e3

Please sign in to comment.