From 1d025c005f4e6cca5e29a8379397044c4996b8b4 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Mon, 13 Aug 2018 12:50:55 +0200 Subject: [PATCH] Link to godocs install steps --- .github/CONTRIBUTING.md | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index b68e3dfbd..94a61e690 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -48,26 +48,20 @@ can quickly merge or address your contributions. 5. The issue is closed. -## Setting up Go to work on Packer +## Setting up Go -If you have never worked with Go before, you will have to complete the following -steps in order to be able to compile and test Packer. These instructions target -POSIX-like environments (Mac OS X, Linux, Cygwin, etc.) so you may need to -adjust them for Windows or other shells. +If you have never worked with Go before, you will have to install it's +runtime in order to build packer. -1. [Download](https://golang.org/dl) and install Go. The instructions below are - for go 1.7. Earlier versions of Go are no longer supported. +1. [Install go](https://golang.org/doc/install#install) -2. Set and export the `GOPATH` environment variable and update your `PATH`. For - example, you can add the following to your `.bash_profile` (or comparable - shell startup scripts): +## Setting up Packer for dev -``` -export GOPATH=$HOME/go -export PATH=$PATH:$GOPATH/bin -``` +If/when you have go installed you can already `go get` packer and `make` in +order to compile and test Packer. These instructions target +POSIX-like environments (Mac OS X, Linux, Cygwin, etc.) so you may need to +adjust them for Windows or other shells. -## Setting up Packer for dev 1. Download the Packer source (and its dependencies) by running `go get github.com/hashicorp/packer`. This will download the Packer source to