#33887: go: update to version 1.0.2 ----------------------------------+----------------------------------------- Reporter: dports@… | Owner: singingwolfboy@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Resolution: | Keywords: haspatch Port: go | ----------------------------------+----------------------------------------- Comment(by slewsys@…):
Go has its own package management, and it's likely that users will install some packages with "go get" instead of the ports system. If we version the GOROOT_FINAL directory, those packages disappear when the port is upgraded. If we leave it alone, they will continue to work.
If GOROOT is versioned, then libs and binaries (under OLD_GOROOT/pkg and OLD_GOROOT/bin) will be unavailable on upgrade, but the source packages (under (OLD_GOROOT/src/pkg) are still available by setting the GOPATH environment variable, e.g.: {{{ export GOPATH="$GOROOT:$OLD_GOROOT" }}} The Go language may be stable, but does that exclude the possibility of incompatibilities between compilers? I'm not qualified to answer that. Nontheless, per kbrint's suggestion, I've attached Portfile2.diff to the ticket. The version can be removed by changing: {{{ set GOSRCDIR lib/${name}/${version} }}} to {{{ set GOSRCDIR lib/${name} }}} -- Ticket URL: <https://trac.macports.org/ticket/33887#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS