This repository was archived by the owner on May 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
HykuAddons: Updating Hyku Base
Paul Danelli edited this page Feb 18, 2022
·
1 revision
Hyku Addons uses a custom version of Hyku that we call hyku_base which is added as a Git submodule. It is a fork of Hyku 2, just before Hyku 3 without the user elevation plus newer commits that have been cherry-picked.
In order to apply new commits that have been made into Hyrax/Hyku, we need to bring them first into hyku_base as described here and then update the git submodule.
Make sure you have a clean internal test app before doing the git add, otherwise Git will not add the submodule as it will consider it dirty.
The process is:
- Update the submodule with
git submodule update --remote - Run
bundle exec rails g hyku_addons:install - Run the tests
- When the tests pass, run git diff to see the new revision number of the submodule, which will be prefixed by "-dirty". This happens because of additional files generated in step 2
- Some of the changes that
hyku_addons:installmakes are modifications of existing files instead and others are just new files. The modified files needs to be restored to their original state usinggit restore, the new ones should be deleted. - Running
git diffagain should show the new submodule revision number without appending "-dirty" to the end. - You can now add your changes:
git add spec/internal_test_hyku - And commit them:
git commit