Makefile: use version suffix in go generate command

Currently, we lack the `/v2` suffix on our `go generate` command, which
results in us downloading and running the command from Git LFS v1.5.6,
which is probably not what we intended.  In addition, Go “helpfully”
modifies our go.mod and go.sum to include new entries, which is also
undesirable.

Let's update the Makefile to invoke the proper package to avoid these
problems.
This commit is contained in:
brian m. carlson 2021-08-23 20:43:47 +00:00
parent beb10f8114
commit c6078ece12
No known key found for this signature in database
GPG Key ID: 2D0C9BC12F82B3A1

@ -198,7 +198,7 @@ mangen : commands/mancontent_gen.go
# 'commands' of Git LFS. It depends upon the contents of the 'docs' directory
# and converts those manpages into code.
commands/mancontent_gen.go : $(wildcard docs/man/*.ronn)
GOOS= GOARCH= $(GO) generate github.com/git-lfs/git-lfs/commands
GOOS= GOARCH= $(GO) generate github.com/git-lfs/git-lfs/v2/commands
# Targets 'all' and 'build' build binaries of Git LFS for the above release
# matrix.