Installing via 'go install' doesn't work
When you run go install
on a main module, it will download the module source, compile it, and install it in the path that $GOBIN
points to.
Unfortunately, go install gitlab.com/gitlab-com/gl-infra/pmv
will only download the latest v0
or v1
tag unless a version sub-path is supplied as well, i.e. to download the latest v3
tag we would need to go install gitlab.com/gitlab-com/gl-infra/pmv/v3
.
With the way the repository is structured the above solution will not work, we either need to create a /v3
subdirectory and copy the source code into there, or update the module name to have the version suffix, i.e. module gitlab.com/gitlab-com/gl-infra/pmv/v3
. The second option is the way I've it most commonly handled (Stripe for example) and would be my preference.
I'm happy to update this, I'm just not sure if this will cause any breaking changes on projects that might depend on this?