I am trying to install git-lfs on an arm-based ubuntu machine. Package doesn't seem to exist so I need to install from source.
Seems like the installation depends on the go language so I installed it
sudo apt-get install golang-go
go version
gives me: go1.2.1 linux/arm
Now I need to build git-lfs
go build ./src/github.com/git-lfs/git-lfs
and I get:
cannot find package "context" in any of Same for
net/http/httptrace
Other packages seem to have been found since I have set the path (after some fumbling around and setting a bunch of go environments params).
Now I see I can install more packages using go get
, but it requires the full path, so I would need to know what is the fully qualified path to those two packages.
Is there a way to look up what is the full path for those packages? i.e. something equivalent to the py-pi in Python etc?
Context
was supported only in Go 1.7/1.8
You need to add the right archive, as explained in the Ubuntu page:
$ sudo add-apt-repository ppa:gophers/archive
$ sudo apt-get update
$ sudo apt-get install golang-1.10-go