mislav / hub

A command-line tool that makes git easier to use with GitHub.
https://hub.github.com/
MIT License
22.75k stars 2.19k forks source link

Build failure: unknown net.Dialer field 'KeepAlive' #941

Closed elzibubble closed 9 years ago

elzibubble commented 9 years ago
φ master= % get golang
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  golang-doc golang-go golang-go-linux-amd64 golang-src
Suggested packages:
  golang-go.tools
The following NEW packages will be installed
  golang golang-doc golang-go golang-go-linux-amd64 golang-src
0 to upgrade, 5 to newly install, 0 to remove and 17 not to upgrade.
Need to get 27.3 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe golang-src amd64 2:1.2.1-2ubuntu1 [4,727 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/universe golang-go-linux-amd64 amd64 2:1.2.1-2ubuntu1 [12.5 MB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/universe golang-go amd64 2:1.2.1-2ubuntu1 [8,104 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/universe golang-doc all 2:1.2.1-2ubuntu1 [1,932 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty/universe golang all 2:1.2.1-2ubuntu1 [16.8 kB]
Fetched 27.3 MB in 5s (5,447 kB/s) 
Selecting previously unselected package golang-src.
(Reading database ... 527430 files and directories currently installed.)
Preparing to unpack .../golang-src_2%3a1.2.1-2ubuntu1_amd64.deb ...
Unpacking golang-src (2:1.2.1-2ubuntu1) ...
Selecting previously unselected package golang-go-linux-amd64.
Preparing to unpack .../golang-go-linux-amd64_2%3a1.2.1-2ubuntu1_amd64.deb ...
Unpacking golang-go-linux-amd64 (2:1.2.1-2ubuntu1) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../golang-go_2%3a1.2.1-2ubuntu1_amd64.deb ...
Unpacking golang-go (2:1.2.1-2ubuntu1) ...
Selecting previously unselected package golang-doc.
Preparing to unpack .../golang-doc_2%3a1.2.1-2ubuntu1_all.deb ...
Unpacking golang-doc (2:1.2.1-2ubuntu1) ...
Selecting previously unselected package golang.
Preparing to unpack .../golang_2%3a1.2.1-2ubuntu1_all.deb ...
Unpacking golang (2:1.2.1-2ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up golang-src (2:1.2.1-2ubuntu1) ...
Setting up golang-go-linux-amd64 (2:1.2.1-2ubuntu1) ...
Setting up golang-go (2:1.2.1-2ubuntu1) ...
update-alternatives: using /usr/bin/golang-go to provide /usr/bin/go (go) in auto mode
Setting up golang-doc (2:1.2.1-2ubuntu1) ...
Setting up golang (2:1.2.1-2ubuntu1) ...
φ master= % script/build
# github.com/github/hub/github
/tmp/go/src/github.com/github/hub/github/http.go:132: unknown net.Dialer field 'KeepAlive' in struct literal
/tmp/go/src/github.com/github/hub/github/http.go:134: unknown http.Transport field 'TLSHandshakeTimeout' in struct literal
owenthereal commented 9 years ago

What's your Go version by running go version? You'd need 1.4 or better to compile from source. Or you could download pre-compiled binaries directly.

elzibubble commented 9 years ago

Yes, needed Go >=1.4, thanks. Pretty stupid to write something like this in a language at such early-adoption stage imo but ^^