Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2019 13:49:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 236509] Mk/Uses/go.mk: Remove support for installing Go libs and sources; add initial modules support
Message-ID:  <bug-236509-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236509

            Bug ID: 236509
           Summary: Mk/Uses/go.mk: Remove support for installing Go libs
                    and sources; add initial modules support
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://reviews.freebsd.org/D19570
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dg@syrec.org

- Remove support for installing compiled Go libs into GO_LIBDIR and source =
code
into GO_SRCDIR [1]
- Restrict build to only main packages by adding `-buildmode=3Dexe` to
GO_BUILDFLAGS [2]
- Add `modules` argument for initial support for building in module-aware m=
ode.
Current support is basic and does two things:
  - disables adding post-extract target and avoids creation of GOPATH dir
structure (not needed in module mode)
  - disables network access during build by adding `-mod=3Dvendor` to
GO_BUILDFLAGS [3]

[1] https://www.freebsd.org/doc/en/books/porters-handbook/book.html#go-libs
[2] https://golang.org/cmd/go/#hdr-Build_modes
[3] https://golang.org/cmd/go/#hdr-Modules_and_vendoring

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236509-7788>