4 ms·
I haven't used submodules much (just one project for a few years), but the only flow that seemed to work is "never commit changes in the submodule." You can ch
by fwip 2y ago
I haven't used submodules much (just one project for a few years), but the only flow that seemed to work is "never commit changes in the submodule."
You can change the code locally on-disk for testing, then submit your changes to upstream. Once you've got an upstream ref (preferably after merge), then you can update the submodule to match.
This does slow everything down though, unless you're cleverer about CI and deployment than we were (very possible).
- IshKebab 2y agoI think you're conflating submodules with vendoring.
- fwip 2y agoThat's one way to describe our strategy, yeah. We used submodules technically to basically vendor our dependencies. Our "upstream" was other people in the same org with whom we had a good working relationship, so our patches generally got merged within a day or two.