Want to contribute? Or need help?¶
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See the Code of Conduct for details.
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin :)
It is more important that you are able to contribute and get help if you need it than it is how you contribute or get help.
That said, some points to get started:
- Have a problem you want fpm to solve for you? You can email the mailing list, or join the IRC channel #fpm on irc.freenode.org, or email me personally (firstname.lastname@example.org)
- Have an idea or a feature request? File a ticket on github, or email the mailing list, or email me personally (email@example.com) if that is more comfortable.
- If you think you found a bug, it probably is a bug. File it on github or send details to the mailing list.
- If you want to send patches, best way is to fork this repo and send me a pull request. If you don’t know git, I also accept diff(1) formatted patches - whatever is most comfortable for you.
- Want to lurk about and see what others are doing? IRC (#fpm on irc.freenode.org) is a good place for this as is the mailing list.
Contributing changes by forking from GitHub¶
First, create a GitHub account if you do not already have one. Log in to GitHub and go to [the main fpm GitHub page](https://github.com/jordansissel/fpm).
At the top right, click on the button labeled “Fork”. This will put a forked copy of the main fpm repo into your account. Next, clone your account’s GitHub repo of fpm. For example:
$ git clone firstname.lastname@example.org:yourusername/fpm.git
If you don’t already have the bundler gem installed, install it now:
$ gem install bundler
Now change to the root of the fpm repo and run:
$ bundle install
This will install all of the dependencies required for running fpm from source. Most importantly, you should see the following output from the bundle command when it lists the fpm gem:
… Using json (1.8.1) Using fpm (0.4.42) from source at . Using hitimes (1.2.1) …
If your system doesn’t have bsdtar by default, make sure to install it or some tests will fail:
apt-get install bsdtar
yum install bsdtar
Next, run make in root of the fpm repo. If there are any problems (such as missing dependencies) you should receive an error
At this point, the fpm command should run directly from the code in your cloned repo. Now simply make whatever changes you want, commit the code, and push your commit back to master.
If you think your changes are ready to be merged back to the main fpm repo, you can generate a pull request on the GitHub website for your repo and send it in for review.
Problems running bundle install?¶
If you are installing on Mac OS 10.9 (Mavericks) you will need to make sure that you have the standalone command line tools separate from Xcode:
$ xcode-select –install
Finally, click the install button on the prompt that appears.