We love that you’re interested in contributing to Carthage!
Carthage is simple
Please file issues or submit pull requests for anything you’d like to see! However, we make no promises that they’ll be accepted—many suggestions will be rejected to preserve simplicity.
Prefer pull requests
If you know exactly how to implement the feature being suggested or fix the bug being reported, please open a pull request instead of an issue. Pull requests are easier than patches or inline code blocks for discussing and merging the changes.
If you can’t make the change yourself, please open an issue after making sure that one isn’t already logged.
After checkout, you can run the following command from the cloned directory, and then open the workspace in Xcode:
make xcodeproj && \ open Carthage.xcodeproj
Then, to install your development copy of Carthage (and any local changes you've made) on your system, and test with your own repos:
If you want to go back to the mainline Brew build, just uninstall the dev copy first:
sudo make uninstall brew install carthage
Run Carthage from Xcode
It may be useful to run Carthage on different
Cartfiles or in "real" project for debugging purpose or to learn how Carthage works. Carthage is a regular macOS application so you can run it inside Xcode and set breakpoints! To do so you may want to change the arguments passed to Carthage's command line tool and probably also change the working directory.
On the edit scheme sheet, on the left column select
Run the application by going to
Product > Runor ⌘ + R.
If you’re interested in contributing code, please have a look at our style guide, which we try to match fairly closely.
If you have a case that is not covered in the style guide, simply do your best to match the style of the surrounding code.
Thanks for contributing!
By submitting a pull request, you represent that you have the right to license your contribution to Carthage and the community, and agree by submitting the patch that your contributions are licensed under the MIT License.