fabiolb / fabio

Consul Load-Balancing made simple
https://fabiolb.net
MIT License
7.26k stars 616 forks source link

make build fails with go: verifying github.com/mwitkow/grpc-proxy@v0.0.0-20181017164139-0f1106ef9c76: checksum mismatch #612

Open mtgxx opened 5 years ago

mtgxx commented 5 years ago

Hi,

I've tried to build fabio from the git repo with make build but it fails with a checksum mismatch.

$ cd /tmp
$ git clone https://github.com/fabiolb/fabio.git
$ cd fabio
$ grep 'github.com/mwitkow/grpc-proxy' go.sum 
github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76 h1:0xuRacu/Zr+jX+KyLLPPktbwXqyOvnOPUQmMLzX1jxU=
github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo=
$ make build
gofmt -s -w `find . -type f -name '*.go' | grep -v vendor`
go build
go: downloading github.com/magiconair/properties v0.0.0-20171031211101-49d762b9817b
go: downloading google.golang.org/grpc v1.16.0
go: downloading github.com/gobwas/glob v0.0.0-20180208211842-19c076cdf202
go: downloading github.com/hashicorp/consul v1.4.2
go: downloading github.com/cyberdelia/go-metrics-graphite v0.0.0-20150826032200-b8345b7f01d5
go: downloading github.com/pubnub/go-metrics-statsd v0.0.0-20170124014003-7da61f429d6b
go: downloading golang.org/x/crypto v0.0.0-20181112202954-3d3f9f413869
go: downloading github.com/circonus-labs/circonus-gometrics v2.2.4+incompatible
go: downloading github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76
go: downloading github.com/hashicorp/vault v0.6.0
go: verifying github.com/mwitkow/grpc-proxy@v0.0.0-20181017164139-0f1106ef9c76: checksum mismatch
    downloaded: h1:LxaK681Aane3f53b4qVTXXq83lL9fWwBTaaZOf9VizA=
    go.sum:     h1:0xuRacu/Zr+jX+KyLLPPktbwXqyOvnOPUQmMLzX1jxU=
make: *** [Makefile:43: build] Error 1
$

How do get this to work?

galen0624 commented 5 years ago

If you remove that line from the go.sum file it should compile.