1: Clone gh.com/someone/LibBar to gh.com/me/LibBar
2: Fix the bug
3: Send pull request to someone
5: git submodule set-url lib/LibBar https://gh.com/me/LibBar.git
git submodule sync lib/LibBar
git submodule update --init --remote --recursive lib/LibBar
cd lib/LibBar/; git checkout main; cd ../..
git add .; git commit -m "Use my own version of lib/LibBar"
And keep using my fork until upstream accepted my pull request. Then I switch the url of the dependency back.It thought that this was option #2 but apparently no
a_t48•2mo ago
The python case is thankfully usually not terrible nowadays (clone, `uv build`, push to artifact registry), modulo needing to pass whatever flag to uv to let it take into account both my private registry and public pypi at the same time.
aitchnyu•2mo ago
https://www.npmjs.com/package/patch-package