Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

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:

  1. Update the submodule with git submodule update --remote
  2. Run bundle exec rails g hyku_addons:install
  3. Run the tests
  4. 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
  5. Some of the changes that hyku_addons:install makes are modifications of existing files instead and others are just new files. The modified files needs to be restored to their original state using git restore, the new ones should be deleted.
  6. Running git diff again should show the new submodule revision number without appending "-dirty" to the end.
  7. You can now add your changes: git add spec/internal_test_hyku
  8. And commit them: git commit

Clone this wiki locally