Description of Racket Distribution for download and package repo pages?

Perhaps I should clarify that I didn't advocate removal of Minimal Racket from anywhere in my previous post.

Minimal Racket from homebrew is still useful: someone who wants to contribute to a package from the main distribution can install Minimal Racket from any source that they want, then setup the development environment for the package they want to contribute to, next they can test the package before submitting the PR.

To make the discussion more concrete, here is how one would setup an environment to work on the plot package (based on commands from the plot CI steps: https://github.com/racket/plot/blob/master/.github/workflows/ci.yml):

  • Install Minimal Racket from your favorite source
  • Clone the plot repository
  • Setup a local catalog for plot, which takes precedence over then main catalog:
racket -l- pkg/dirs-catalog --link catalog .
echo "file://`pwd`/catalog" > catalogs.txt
raco pkg config catalogs >> catalogs.txt
raco pkg config --set catalogs `cat catalogs.txt`
raco pkg config catalogs
  • Install the plot package -- this will install plot from the local checkout, and all other packages from the main catalog:
raco pkg install --batch --auto plot

With this setup, changes can be made to the plot package, tested and submitted as a PR. Of course, this works for any package, not just plot.

Alex.

2 Likes