Can't build with beats-packer on Ubuntu 16.04: .../xgo: cannot download

(Derek Viljoen) #1

Trying to build filebeat for arm. Using beats-packer w/docker. Make images and make pull-images both succeed. Make deps fails:

go get
package cannot download, $GOPATH not set. For more details see: go help gopath
Makefile:49: recipe for target 'deps' failed
make: *** [deps] Error 1

Searched for this error came up empty.

(ruflin) #2

It seems like your GOPATH is not setup properly. Best is to use go help gopath to get some more details on how to do this as recommended in the error.

(Derek Viljoen) #3

Sorry for my ignorance, but isn't this building inside of docker instance? And so shouldn't the environment set the GOPATH?

(ruflin) #4

Which beats-packer are you using? The one in the beats repo or the separate beats-packer repo?

(Derek Viljoen) #5

From GitHub - here

(ruflin) #6

Ok, I see. That is probably the issue. We recently moved all packer stuff into the beats repo here:

(system) #7