Upstream "separated go module for <target>", how to build

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Sun, 10 Dec 2023 11:55:48 UTC
Hello all,

devel/go-git port uses GO_TARGET=./cli/go-git to build this target.
New version, upstream moved cli/go-git to a separated go module.

Can't find a way to build it:

- using GO_MODULE: https://github.com/go-git/go-git/issues/952
- and using "classic" gomod-vendor fails

I remember this happening in other ports...
Any tips are welcome.

Thanks,

-- 
Nuno Teixeira
FreeBSD Committer (ports)