When you do a release on github for a repo you can do "tags" which makes it easier to track in your go.mod
But submodules (or multiple modules) the existing github release method does not work.
The "main" module will be tagged
But the "submodule" can't be referenced via that tag. (Which makes sense bc they should not be required to be lockstep)
My question is how to get Github to tag that submodule with an explicit version?
Note this is for a "private" repo so I can't publish it as a separate package within golang outside of github
You can tag versions for each submodule by adding a directory prefix in front of the tag.
So for the following directory structure, you can create this tag submod/subsubmod/v0.0.1
demo/
└── submod
└── subsubmod
├── file.go
└── go.mod