Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
b23fe724
Commit
b23fe724
authored
Jun 26, 2014
by
Carlos Sanchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gox installation instructions to Contributing
parent
74ec8115
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
CONTRIBUTING.md
CONTRIBUTING.md
+19
-6
No files found.
CONTRIBUTING.md
View file @
b23fe724
...
...
@@ -56,19 +56,32 @@ following steps in order to be able to compile and test Packer.
1.
Install Go. Make sure the Go version is at least Go 1.2. Packer will not work with anything less than
Go 1.2. On a Mac, you can
`brew install go`
to install Go 1.2.
2.
Set and export the
`GOPATH`
environment variable
. For example, you can
add
`export GOPATH=$HOME/Documents/golang`
to your
`.bash_profile`
.
2.
Set and export the
`GOPATH`
environment variable
and update your
`PATH`
.
For example, you can add
to your
`.bash_profile`
.
3.
Download the Packer source (and its dependencies) by running
```
export GOPATH=$HOME/Documents/golang
export PATH=$PATH:$GOPATH/bin
```
3.
Install and build
`gox`
with
```
go get github.com/mitchellh/gox
cd $GOPATH/src/github.com/mitchellh/gox
go build
```
4.
Download the Packer source (and its dependencies) by running
`go get github.com/mitchellh/packer`
. This will download the Packer
source to
`$GOPATH/src/github.com/mitchellh/packer`
.
4
.
Make your changes to the Packer source. You can run
`make`
from the main
5
.
Make your changes to the Packer source. You can run
`make`
from the main
source directory to recompile all the binaries. Any compilation errors
will be shown when the binaries are rebuilding.
5
.
Test your changes by running
`make test`
and then running
6
.
Test your changes by running
`make test`
and then running
`$GOPATH/src/github.com/mitchellh/packer/bin/packer`
to build a machine.
6
.
If everything works well and the tests pass, run
`go fmt`
on your code
7
.
If everything works well and the tests pass, run
`go fmt`
on your code
before submitting a pull request.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment