I recently added a feature to my Go project which might break other projects that uses it. I decided to bump a major version to this project, "A", by adding a matching git tag 2.0.0
(it was previously 1.x.x
).
In my other project which requires it, "B", I updated its go.mod
file like so:
module gitlab.mydomain.com/namespace/B
go 1.12
require (
gitlab.mydomain.com/namespace/A v2.0.0
)
As you can see, I specifically mentioned v2.0.0
, but once I run B, the version of A is being overridden with v0.0.0-<timestamp>-<revision>
.
I made sure that the tag exists in the remote.
What am I missing here?