Created attachment 233081 [details] ports-mgmt/modules2tuple: Unmarshall apis.GithubRef errors Hi, Recently, modules2tuple has been having issues unmarshalling some Github API responses for net-mgmt/prometheus2. apis.GithubRef appears to expect a string, but it looks like sometimes it can encounter an array and not know what to do. I've attached a couple of errors I've seen recently, both when trying to build newer versions of the net-mgmt/prometheus2 port. Each error mentions the hashicorp/consul module. I'm not sure why this dependency seems to be special. -David
Hi, I'll have a look at this, in the meantime, I'd recommend switching to the new(ish) GO_MODULE mechanism [1]. It uses Go to resolve dependencies and is much more robust. [1] https://docs.freebsd.org/en/books/porters-handbook/special/index.html#using-go
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee95cdb03dbcc533e9fb7b11902aa7c8d0836cfd commit ee95cdb03dbcc533e9fb7b11902aa7c8d0836cfd Author: Dmitri Goutnik <dmgk@FreeBSD.org> AuthorDate: 2022-04-30 21:28:13 +0000 Commit: Dmitri Goutnik <dmgk@FreeBSD.org> CommitDate: 2022-04-30 21:41:42 +0000 ports-mgmt/modules2tuple: Update to 2.2.4 Changes: https://github.com/dmgk/modules2tuple/releases/tag/v2.2.4 PR: 263161 Reported by: David O'Rourke <dor.bsd@xm0.uk> ports-mgmt/modules2tuple/Makefile | 3 +-- ports-mgmt/modules2tuple/distinfo | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-)
Hi David, Should be fixed by the latest modules2tuple update, please reopen if you still encounter this issue.