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
df69721b
Commit
df69721b
authored
Jul 12, 2013
by
Steven Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructions for how to get Go set up to contribute.
parent
60ee20f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
CONTRIBUTING.md
CONTRIBUTING.md
+24
-0
No files found.
CONTRIBUTING.md
View file @
df69721b
...
...
@@ -41,3 +41,27 @@ it raises the chances we can quickly merge or address your contributions.
linked.
5.
The issue is closed.
## Setting up Go to work on Packer
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.
1.
Install Go. On a Mac, you can
`brew install go`
.
2.
Set and export the
`GOPATH`
environment variable. For example, you can
add
`export GOPATH=$HOME/Documents/golang`
to your
`.bash_profile`
.
3.
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
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
`$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
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