pshima / consul-snapshot

consul-snapshot is a backup and restore utility for Consul (https://www.consul.io). This is slightly different than some other utilities out there as this runs as a daemon for backups and ships them to S3. Also has integrated monitoring and backup health checks.
Apache License 2.0
116 stars 35 forks source link

Install no longer working on Ubuntu 16.04 #22

Closed snoremac closed 7 years ago

snoremac commented 7 years ago

Hi,

Commit https://github.com/pshima/consul-snapshot/commit/5a01c07c214e6d031eb4352096222ba3f7cbd98d seems to introduce a change that depends on Go 1.7, which rules out vanilla Ubuntu 16.04 LTS.

Is that deliberate? Is hunting down a golang 1.7 PPA the only option now?

thanks,

Cam

pshima commented 7 years ago

Can you share with me the error you are getting?

snoremac commented 7 years ago

Sorry my bad.

root@18a8ae5c91f4:/# export GOPATH="/usr/local/go" && go get github.com/pshima/consul-snapshot
package context: unrecognized import path "context" (import path does not begin with hostname)
pshima commented 7 years ago

Ok thanks I will try and repro this afternoon.

On Aug 15, 2017, at 8:39 AM, snoremac notifications@github.com wrote:

Sorry my bad.

root@18a8ae5c91f4:/# export GOPATH="/usr/local/go" && go get github.com/pshima/consul-snapshot package context: unrecognized import path "context" (import path does not begin with hostname)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

pshima commented 7 years ago

Can you give it another try?

Snagged the 16.04 container, apt-get install golang-go git and then your above with success.

Added travis builds for 1.6 and 1.7 which are still failing but suspect that is something in my make file that I need to fix.

pshima commented 7 years ago

So the bad news is that consul requires 1.8 which is required by consul-snapshot and it is the consul pull that is failing.

Honest question though - why is the reason for building instead of using one of the pre built binaries?

snoremac commented 7 years ago

Yeah fair question. We've had some ansible automation that's been installing it this way for a while, that's all.

So I guess we'll change our playbook to use the binary install method.

Thanks.