#62747 closed update (invalid)
Update go version and possible bug
Reported by: | gaming-hacker (G Alexander) | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | herbygillot (Herby Gillot) | |
Port: | go |
Description
Hello, Latest stable version is 1.16.3 portfile has 1.16.1
also why does build 1.16.1 depend upon old version 1.4 for non ARM?
Change History (5)
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | herbygillot added; @… @… removed |
---|---|
Keywords: | version outdated old dependency removed |
Owner: | set to ci42 |
Status: | new → assigned |
comment:2 Changed 4 years ago by herbygillot (Herby Gillot)
You are misunderstanding how the Portfile for Go works.
In order to build Golang, you require a Go compiler because Go is written in Go.
But in a pure MacPorts environment, you are only starting with a C/C++ compiler.
Go 1.4 is the most recent version of Go that can be built using only a C compiler.
So for x86_64, we build Go 1.4 first, *then* use Go 1.4 to build the most recent version of Go, which as of right now is 1.16.3 as @ryandesign said.
For arm64, Go 1.4 is not available. Therefore we take a different approach, and use an official pre-built Arm64 Go installation to build an Arm64-native build of the latest Go for MacPorts.
The pre-built version is 1.16.1, and we then use it to build the latest version (again 1.16.3). The version of the pre-built compiler does not really matter.
In all cases for both x86_64 and arm64, MacPorts is building the latest version of Go.
comment:3 Changed 4 years ago by gaming-hacker (G Alexander)
Thanks, I'm not a huge user of Go but I need to hack it sometimes.
Please close ticket.
comment:4 Changed 4 years ago by herbygillot (Herby Gillot)
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
As an update here, we are now using the same latest version of Go for the pre-built version that we use for ARM64.
Closing this ticket.
go was updated to 1.16.3 23 days ago. Run
sudo port selfupdate
to receive this and other updates.You mustn't include the
@
symbol before the GitHub username when filling out the Cc field.