From 43c238c13ce85c7ccba40311d7c195e10e9caf35 Mon Sep 17 00:00:00 2001 From: Jenna Goldstrich Date: Wed, 15 Dec 2021 10:03:07 -0800 Subject: [PATCH] Update Contributor docs to clone repo instead of go get packer --- .github/CONTRIBUTING.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index f8f2c4462..81f4c8fb3 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -74,14 +74,15 @@ source, you need to have golang >= v1.17 ## Setting up Packer for dev -If/when you have go installed you can already `go get` packer and `make` in +If/when you have go installed you can already clone packer and `make` in order to compile and test Packer. These instructions target POSIX-like environments (macOS, Linux, Cygwin, etc.) so you may need to adjust them for Windows or other shells. -1. Download the Packer source (and its dependencies) by running - `go get github.com/hashicorp/packer`. This will download the Packer source to - `$GOPATH/src/github.com/hashicorp/packer`. + +1. Create a directory in your GOPATH for the code `mkdir -p $(go env GOPATH)/src/github.com/hashicorp && cd $_` +and clone the packer repository from GitHub into your GOPATH `git clone https://github.com/hashicorp/packer.git` +then change into the packer directory `cd packer` 2. When working on Packer, first `cd $GOPATH/src/github.com/hashicorp/packer` so you can run `make` and easily access other files. Run `make help` to get