I'm trying to come up with a way to handle Git project dependencies like the Swift Package Manager.
I'd like to specifically capture that, let's say my app version 1.2, depends on framework A, version 1.0.
When I then checkout v1.2 of my app, the framework code should be automatically be pulled in at tag v1.0.
code/myapp/ tag v1.2
lib/frameworkA tag v1.0
I experimented with Git submodules, but I could not figure out a way to automatically checkout a specific submodule tag when I checkout a specific tag of the parent app.
The .gitmodules file is checked in as part of the parent project. Ideally it would contain details about which tag of the submodule to use. Is this possible at all? If not, is there maybe another way that doesn't use submodules?