Bug 262349 - ports-mgmt/modules2tuple: Explodes with promscale 0.10.0
Summary: ports-mgmt/modules2tuple: Explodes with promscale 0.10.0
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitri Goutnik
URL:
Keywords:
Depends on:
Blocks: 261568
  Show dependency treegraph
 
Reported: 2022-03-05 02:58 UTC by Kevin Bowling
Modified: 2022-12-03 17:21 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Bowling freebsd_committer freebsd_triage 2022-03-05 02:58:55 UTC
Trying to update net-mgmt/promscale to 0.10.0 results in some explosions in modules2tuple that I don't have much experience to dig in (not a golang fan).  Any assist?
Comment 1 Dmitri Goutnik freebsd_committer freebsd_triage 2022-03-08 11:44:45 UTC
If modules2tuple cannot grok it, I'd suggest switching to the GO_MODULE way of specifying dependencies [1].

[1] https://docs.freebsd.org/en/books/porters-handbook/special/index.html#using-go
Comment 2 Kevin Bowling freebsd_committer freebsd_triage 2022-04-04 21:19:43 UTC
(In reply to Dmitri Goutnik from comment #1)
It doesn't appear they publish as a proper module to do that.
Comment 3 Dmitri Goutnik freebsd_committer freebsd_triage 2022-05-07 23:48:00 UTC
(In reply to Kevin Bowling from comment #2)
Sorry for the late reply, this PR must have slipped through the cracks.

Ah yes, their version is missing the "v" prefix, so it is not listed on pkg.go.dev and their go.mod is not available through goproxy. There's a workaround for that after ports d592a0f85, but even then, something is broken with their dependencies because it is impossible to vendor them:

$ git clone https://github.com/timescale/promscale.git
$ cd promscale && go mod vendor
go: downloading github.com/jackc/pgx/v4 v4.15.1-0.20220219175125-b6b24f9e8a5d
go: downloading github.com/stretchr/testify v1.7.1
go: downloading github.com/jaegertracing/jaeger v1.32.0
....
go: downloading github.com/PuerkitoBio/purell v1.1.1
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: pattern actual/*: no matching files found

This is with the current master. We cannot do much until vendoring errors are fixed.
Comment 4 Kevin Bowling freebsd_committer freebsd_triage 2022-05-15 22:13:14 UTC
(In reply to Dmitri Goutnik from comment #3)
I reported the go module issue as https://github.com/timescale/promscale/issues/1281