-
Notifications
You must be signed in to change notification settings - Fork 13
Adding Version Exceptions
Siddhartha Kasivajhula edited this page Jan 13, 2024
·
4 revisions
When making a new release, we may be freshly (at least transitively, via a dependency) relying on libraries or APIs that were added in a recent version of Racket. In this case, we want to make sure that older versions of Racket use a version of your repo prior to the changes you are about to make. The standard way to do this in Racket is adding version exceptions.
Note: This should ideally be done before merging the fresh changes!
To do this for Qi:
- First, create a new "maintenance" branch from your existing main branch. For example:
$ git checkout main
$ git checkout -b v3.0-maintenance
$ git push upstream
- Sign in to the Racket Package Server
- Search for "qi" (or click into the upper right dropdown and "My packages")
- Open each Qi package (the detail view) in a new tab. Follow the remaining instructions for each of them, one at a time.
- Click "Edit this package"
- Scroll down to "Package Versions & Sources"
- Scroll all the way to the bottom of that section to the button "Add Racket version that will have a different source"
- Write the Racket version in the field (e.g. "8.3") and click that button
- It will now add the fields for the new version to the matrix. Populate these fields with the new branch you created, keeping all of the other fields the same as for the other version exceptions.
- Do this for all of the Qi packages
- If this is being done after merging your changes (ideally not), then click the account dropdown at the top right and "Rescan all of my packages."
Home | Developer's Guide | Calendar | Events | Projects | Meeting Notes