When we are assisting with troubleshooting, or implementing a feature you've requested, we may ask you to run octocatalog-diff
from a non-master branch to try it out.
This document is intended for people who may not be familiar with git, GitHub, and/or ruby. If you already know how to do this in another way, feel free!
-
Determine the branch name. If there's an open Pull Request, you can see the branch name near the top of the page.
-
Clone the
octocatalog-diff
repository in your home directory. From the command line:cd $HOME git clone https://github.com/github/octocatalog-diff.git
-
Change into the directory created by your checkout:
cd $HOME/octocatalog-diff
-
Check out the branch you wish to use, filling in the branch name you determined in the first step:
git checkout BRANCH_NAME_FROM_STEP_1
-
Bootstrap the repository to pull in dependencies:
./script/bootstrap
-
Optional but recommended - run the test suite:
rake
Now that you have octocatalog-diff
checked out and bootstrapped, it's time to use it.
We've created a wrapper script to make this easier for you.
-
Change directories to the location where you ordinarily run
octocatalog-diff
(for example: in your Puppet repository).cd /etc/puppetlabs/code
-
Run the
script/octocatalog-diff-wrapper
script from this checkout. For example, if you checked outoctocatalog-diff
to your home directory, you could use:$HOME/octocatalog-diff/script/octocatalog-diff-wrapper <options>
-d
) to display debugging information.