Say we want to modify the docs of errortrace, which is bundled with
the main distribution. I assume the system is a Unix.
- Install Racket from a binary as a local distribution, so you don't have to use sudo/root.
If you don't create symlinks, make sure you run the correct version of raco and friends below.
-
Create a
pkgsdirectory somewhere andcdto it. -
git clone https://github.com/racket/errortrace.git -
This is a multi collection package so we need to link several collections (in particular if you change the code and not just the docs):
cd errortrace
raco pkg update --link errortrace errortrace-lib errortrace-doc errortrace-test
-
Fork the repo on github to, say https://github.com/Metaxal/errortrace
-
git remote add fork [email protected]:Metaxal/errortrace.git(This uses the ssh link, but it could be the https one) -
Create a new branch
git checkout -b my-edits -
Make your edits, test your changes (
raco test), runraco setup errortrace. -
Commit and push the changes of the
my-editsbranch to your own github clone:
git commit
git push remote fork
- Go to https://github.com/Metaxal/errortrace and make the pull request.
- https://github.com/racket/racket/wiki/Ways-to-contribute-to-Racket
- https://www.greghendershott.com/2013/04/a-guide-for-infrequent-contributors-to-racket.html
- https://blog.racket-lang.org/2017/09/tutorial-contributing-to-racket.html
- https://alex-hhh.github.io/2018/01/changing-built-in-racket-packages.html