Bug 238941

Summary: devel/hub: Switch to USES=go:modules, fix build with go1.13beta1
Product: Ports & Packages Reporter: Dmitri Goutnik <dmgk>
Component: Individual Port(s)Assignee: Vinícius Zavam <egypcio>
Status: Closed FIXED    
Severity: Affects Only Me CC: egypcio
Priority: --- Keywords: patch
Version: LatestFlags: egypcio: maintainer-feedback+
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch file dmgk: maintainer-approval? (egypcio)

Description Dmitri Goutnik freebsd_committer freebsd_triage 2019-07-02 15:49:03 UTC
Created attachment 205482 [details]
patch file

===>  Building for hub-2.12.0
go: github.com/BurntSushi/toml@v0.3.0: Get https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.0.mod: dial tcp: lookup proxy.golang.org on 1.0.0.1:53: write udp 127.0.0.1:14988->1.0.0.1:53: write: permission denied
*** Error code 1

- Switch to USES=go:modules, this also fixes the build with go1.13beta1

QA:
  poudriere testport: OK (120a-go1.12.6, 120a-go1.13beta1)
Comment 1 Vinícius Zavam freebsd_committer freebsd_triage 2019-07-03 17:04:25 UTC
thanks for sharing a patch, appreciated.
I'm currently building&testing it here, while I update the port itself.

[NOTE] without 'USES= go:modules' it tried to fetch additional modules when we used 'lang/go-devel' as GO_PORT.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-07-03 17:28:05 UTC
A commit references this bug:

Author: egypcio
Date: Wed Jul  3 17:27:19 UTC 2019
New revision: 505765
URL: https://svnweb.freebsd.org/changeset/ports/505765

Log:
  devel/hub: Switch to USES=go:modules, fix build with go1.13beta1

    while here, update 2.12.0 to 2.12.1

  PR:		238941
  Reported by:	Dmitri Goutnik <dg % syrec.org>

Changes:
  head/devel/hub/Makefile
  head/devel/hub/distinfo
Comment 3 Vinícius Zavam freebsd_committer freebsd_triage 2019-07-03 17:30:37 UTC
also built against FreeBSD 11, different archs;
testport OK. committed! thanks.