Bug 298161 - devel/go-git: Update to 5.19.2, take maintainership
Summary: devel/go-git: Update to 5.19.2, take maintainership
Status: Closed DUPLICATE of bug 298162
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-09-04 09:10 UTC by Aydar Gareev
Modified: 2026-09-04 10:51 UTC (History)
0 users

See Also:


Attachments
text/plain (15.12 KB, application/mbox)
2026-09-04 09:10 UTC, Aydar Gareev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aydar Gareev 2026-09-04 09:10:14 UTC
Created attachment 274400 [details]
text/plain

Update devel/go-git from 5.10.0 to 5.19.2, and take maintainership
(currently ports@).

Why a plain version bump does not work
--------------------------------------
Upstream moved the command line client into its own nested Go module around
v5.10.1 ("cli: separate go module for cli"). cli/go-git now has its own
go.mod, and the Go toolchain excludes nested modules from the parent module
zip. The archive fetched via GO_MODULE=github.com/go-git/go-git/v5 therefore
does not contain cli/ at all:

  unzip -l .../@v/v5.19.2.zip | grep cli   # no matches

The nested module is not published either -- proxy.golang.org returns an
empty version list for github.com/go-git/go-git/cli/go-git, and there are no
cli/* tags in the repository.

What this patch does
--------------------
- Fetch sources from GitHub by tag (USE_GITHUB, WRKSRC_SUBDIR=cli/go-git)
  instead of the module proxy, with dependencies pinned via GH_TUPLE.
- Add files/modules.txt, generated by "go mod vendor" in cli/go-git at tag
  v5.19.2. GH_TUPLE lays out vendor/ but does not create the vendoring
  manifest, and the build fails without it under -mod=vendor.

Notes
-----
The CLI at tag v5.19.2 depends on github.com/go-git/go-git/v5 v5.19.1. The
CLI module carries no version of its own, so the port tracks the repository
tag rather than the library version.

Testing
-------
portlint -A: clean
poudriere testport: 15.0-RELEASE amd64, 14.3-RELEASE amd64 -- in progress

  $ go-git version
  go-git (5.19.2) - build FreeBSD
Comment 1 Aydar Gareev 2026-09-04 10:51:10 UTC

*** This bug has been marked as a duplicate of bug 298162 ***