#48940 closed update (fixed)
go: update to 1.5.1
Reported by: | lutz.horn@… | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | go |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
The Go programming language has been upgraded to version 1.5. Mac Ports still contains version 1.4.2.
Attachments (3)
Change History (11)
comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to ciserlohn@… |
Summary: | Request: Upgrad go from 1.4.2 to 1.5.1 → go: update to 1.5.1 |
Version: | 2.3.3 |
comment:2 Changed 9 years ago by axet (Alexey Kuznetsov)
comment:3 follow-ups: 4 5 Changed 9 years ago by coditect (Nicholas Rawlings)
As of version 1.5, the Go toolchain is written in Go. This means that in order to build Go 1.5, one must either already have Go 1.4.x installed or use the gccgo compiler.
Should the Portfile build Go 1.4 as a prerequisite to building Go 1.5? Or would it be preferable to add Go support to gcc5 (possibly as a variant) and specify it as a build dependency?
comment:4 Changed 9 years ago by lutz.horn@…
Replying to nicholas@…:
Should the Portfile build Go 1.4 as a prerequisite to building Go 1.5? Or would it be preferable to add Go support to gcc5 (possibly as a variant) and specify it as a build dependency?
As a Go developer, I'd prefer not to have Go 1.4 installed in addition. But if this is the easier and faster approach to have Go 1.5 available in MacPorts, this option would be OK for me.
comment:5 Changed 9 years ago by coditect (Nicholas Rawlings)
It appears that using gccgo is not an option since it currently does not build on Darwin: https://github.com/golang/go/issues/10727
Changed 9 years ago by coditect (Nicholas Rawlings)
Attachment: | Portfile-go.diff added |
---|
Converts the go port to a stub with subports go1.4 and go1.5
Changed 9 years ago by coditect (Nicholas Rawlings)
port select
file for go1.4 subport
Changed 9 years ago by coditect (Nicholas Rawlings)
port select
file for go1.5 subport
comment:6 follow-up: 8 Changed 9 years ago by coditect (Nicholas Rawlings)
The patch I submitted converts the go
port to a stub (like the port for PHP, but much simpler) and adds sub-ports for Go 1.4 and Go 1.5, with go1.4
defined as a build dependency for go1.5
. It also adds a go get
command to the build phase to include standard tools like godoc
, vet
, and cover
that no serious Go developer can live without.
See also ticket 49047, which defines a new go_select
port for easy switching between Go versions.
comment:7 Changed 9 years ago by ci42
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 Changed 9 years ago by ci42
Replying to nicholas@…:
It also adds a
go get
command to the build phase to include standard tools likegodoc
,vet
, andcover
that no serious Go developer can live without.
These tool are included in the go-tools
port.
can you please add +variant for windows, linux32/64, mac builds?
/opt/local/go/src/make.bash