Bug 263161 - ports-mgmt/modules2tuple: Unable to unmarshal to apis.GithubRef
Summary: ports-mgmt/modules2tuple: Unable to unmarshal to apis.GithubRef
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitri Goutnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-08 19:58 UTC by David O'Rourke
Modified: 2022-04-30 21:46 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (dmgk)


Attachments
ports-mgmt/modules2tuple: Unmarshall apis.GithubRef errors (2.03 KB, text/plain)
2022-04-08 19:58 UTC, David O'Rourke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David O'Rourke 2022-04-08 19:58:31 UTC
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
Comment 1 Dmitri Goutnik freebsd_committer freebsd_triage 2022-04-26 22:25:36 UTC
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
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-04-30 21:43:00 UTC
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(-)
Comment 3 Dmitri Goutnik freebsd_committer freebsd_triage 2022-04-30 21:46:19 UTC
Hi David,

Should be fixed by the latest modules2tuple update, please reopen if you still encounter this issue.