Your app needs to pin a fork of `shared-ui` at an exact commit. Vendoring is messy — a submodule is correct.
A submodule is two things in the parent repo: a `.gitmodules` entry and a pinned pointer. Real `git submodule add` also clones the sub-repo, which this browser engine cannot do — so you write the record by hand and commit it.
Medium · 4 steps · +500 XP
This scenario walks through 4 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
echo "[submodule vendor/shared-ui] url = git@github.com:you/shared-ui.git" > .gitmodulesgit add .gitmodulesgit commit -m "deps: add shared-ui submodule"git ls-files`.gitmodules` names the URL and path; the tree entry pins the exact commit. `git submodule add` writes both and clones the sub-repo in one go, and clones need `--recurse-submodules` to populate it.