Golang: separate versioning of multiple modules

Ok, after a continued search I found this resource: https://github.com/go-modules-by-example/index/blob/master/009_submodules/README.md

Applied to my situation, the answer is to use:

  • for module modA use tags of the form modA/vX.Y.Z (using semantic versioning)
  • for module modB use tags of the form modB/vX.Y.Z

For the context, the citation from the above lint:

The official modules proposal predicts that most projects will follow the simplest approach of using a single Go module per repository, which typically means creating one go.mod file located in the root directory of a repository.

For some reason, I still cannot find a correct docs/specs reference.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top