Skip to content

Commit

Permalink
resolve checksum mismatch go mod error: related to docker module, tha…
Browse files Browse the repository at this point in the history
…t has different checksup for different OS
  • Loading branch information
alexei-led committed May 2, 2019
1 parent 6163dc9 commit 27b1997
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.3
0.6.4
8 changes: 1 addition & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# ----- Go Builder Image ------
#
FROM golang:1.11 AS builder
FROM golang:1.12 AS builder

# curl git bash
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand All @@ -27,12 +27,6 @@ WORKDIR /go/src/github.com/alexei-led/pumba
# copy sources
COPY . .

# fixing "checksum mismatch" error
# docker package has different checksum for every OS
# remove github.com/docker/engine from go.sum
RUN cat go.sum | grep -v "github.com/docker/engine" > go.sum || true
RUN cat go.sum | grep -v "github.com/docker/distribution" > go.sum || true

# run test and calculate coverage
RUN VERSION=$(cat VERSION) hack/test.sh

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ require (
gotest.tools v2.2.0+incompatible // indirect
)

replace github.com/docker/docker => github.com/docker/engine v0.0.0-20190206233949-eb137ff1765f
replace github.com/docker/docker v1.13.1 => github.com/docker/engine v0.0.0-20190408150954-50ebe4562dfc
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/docker/distribution v2.7.1+incompatible h1:a5mlkVzth6W5A4fOsS3D2EO5BUmsJpcB+cRlLU7cSug=
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
github.com/docker/docker v1.13.1 h1:IkZjBSIc8hBjLpqeAbeE5mca5mNgeatLHBy3GO78BWo=
github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
github.com/docker/engine v0.0.0-20190206233949-eb137ff1765f h1:mhfXDTAewKkr4i4/+jprujJYs+DhP3NimGLiELJc0JQ=
github.com/docker/engine v0.0.0-20190206233949-eb137ff1765f/go.mod h1:3CPr2caMgTHxxIAZgEMd3uLYPDlRvPqCpyeRf6ncPcY=
github.com/docker/engine v0.0.0-20190408150954-50ebe4562dfc h1:Hr7acZ8sorvBVY3kxRZT6FB6W6hGfrKjqWzhAWLXm+o=
github.com/docker/engine v0.0.0-20190408150954-50ebe4562dfc/go.mod h1:3CPr2caMgTHxxIAZgEMd3uLYPDlRvPqCpyeRf6ncPcY=
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
github.com/docker/go-units v0.3.3 h1:Xk8S3Xj5sLGlG5g67hJmYMmUgXv5N4PhkjJHHqrwnTk=
Expand Down

0 comments on commit 27b1997

Please sign in to comment.