[MacPorts] #61192: Lots of golang ports are downloading dependencies at build time
MacPorts
noreply at macports.org
Fri Sep 18 13:47:58 UTC 2020
#61192: Lots of golang ports are downloading dependencies at build time
---------------------+--------------------
Reporter: amake | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: |
---------------------+--------------------
Comment (by amake):
`go2port` is very much a "best effort" tool :(
I just had a go at fixing the `glow` port and noted the following tricky
parts:
1. go2port 20200217 will duplicate some dependencies. I just fixed this
and pushed an update to the port, so you should see it soon.
2. There were some checksum mismatches as you mentioned; surprisingly
enough it seemed like GitHub sometimes served truncated tarballs, because
deleting and re-downloading fixed it. This is quite troubling, but I'm not
sure what I can do about it.
3. Simply pasting the generated `go.vendors` block is not enough; you also
have to give the main distfile a filename. Until you do so, the checksum
phase will fail in a way that makes it look like issue (2) above.
One issue you might run into is that custom domains are generally not
supported by either `go2port` or the golang portgroup*. So far all the
packages with custom domains I've seen have been mere redirects to a
supported domain like github.com. If you encounter something else then it
might be quite difficult to handle.
*Someone has [[https://github.com/amake/go2port/pull/3|offered a patch]]
to support arbitrary domains in `go2port` but since the golang portgroup
would also need a lot of work I haven't yet properly reviewed it.
--
Ticket URL: <https://trac.macports.org/ticket/61192#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list