Repository navigation
Update go.mod module path with explicit v2 - #4575
Conversation
When our go.mod file was introduced in commit 114e85c in PR git-lfs#3208, the module path chosen did not include a trailing /v2 component. However, the Go modules specification now advises that module paths must have a "major version suffix" which matches the release version. We therefore add a /v2 suffix to our module path and all its instances in import paths. See also https://golang.org/ref/mod#major-version-suffixes for details regarding the Go module system's major version suffix rule.
bk2204
left a comment
There was a problem hiding this comment.
I'm not intrinsically opposed to this, but as I mentioned in #4574 (comment), it might give folks the impression that our internals are semantically versioned when they are not: only the behavior of the external binary is semantically versioned.
So I'm approving this in case you want to go ahead anyway, even though I feel (not strongly) that a documentation fix might be appropriate instead.
|
Thanks -- and just to be clear, a documentation update is absolutely required too. This was just something I stumbled on while trying understand what was going on. From what I can tell, there's no way to use Go modules and specify that your package is, itself, not a module for re-use, but I would be very pleased to hear otherwise. Some other major projects like InfluxDB and Consul have a top-level Assuming we continue to follow that same model, I would be inclined to think that we should stick to the Go modules' rules, but also put prominent notices in our docs that we don't provide a stable ABI, rather than trying to hint that that's the case by relying on an artifact of the way we number releases as compared to our However, I also don't feel strongly about this; it was just the outcome of some investigation into what was going on with proxy.golang.org. |
When our
go.modfile was introduced in commit 114e85c in PR #3208, the module path chosen did not include a trailing/v2component. However, the Go modules specification now advises that module paths must have a "major version suffix" which matches the release version.We therefore add a
/v2suffix to our module path and all its instances in import paths. We'll need to bump this again before we release v3.0.0, obviously (along with things like version number inconfig/version.goand the JSON inversioninfo.json).See also the Go module system's major version suffix rule.
As noted in #4574 (comment), the current output from Go's proxy service only lists Git LFS version tags up to v2.5.2, and it marks all the v2 ones with
+incompatible.Click for current version listing (sorted):
Making an explicit request for the latest v2.13.3 version from the checksum service currently returns:
This presumably also explains why the Git LFS entry in the pkg.go.dev search index returns a stale page:
Partially resolves #4574.
/cc @RochaStratovan as reporter.