Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from docker during build #54

Open
tvaughan73 opened this issue Mar 6, 2019 · 2 comments
Open

Error from docker during build #54

tvaughan73 opened this issue Mar 6, 2019 · 2 comments

Comments

@tvaughan73
Copy link

I get the error below when trying to build using docker compose. Any idea how to fix?

verifying github.com/coreos/[email protected]+incompatible: checksum mismatch
downloaded: h1:pAWNwdf7QiT1zfaWyqCtNZQWCLByQyA3JrSQyuYAqnQ=
go.sum: h1:5k8nkcBSvltjOO5RLflnXevOJXndlKIMbvVnMTX+cUU=
Service 'app' failed to build: The command '/bin/sh -c go install github.com/RichardKnop/go-oauth2-server' returned a non-zero code: 1
Failed to deploy 'Compose: docker-compose.yml': docker-compose process finished with exit code 1

@rjswitzer3
Copy link

rjswitzer3 commented Mar 19, 2019

I have encountered/replicated the same issue.

Docker Compose version:
docker-compose version 1.23.2, build 1110ad01

docker-compose.yml:
version: '3.6'
services:
oauth-mock:
build: https://github.com/RichardKnop/go-oauth2-server.git

Command:
docker-compose up

Error:
go: extracting golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2 verifying github.com/coreos/[email protected]+incompatible: checksum mismatch downloaded: h1:pAWNwdf7QiT1zfaWyqCtNZQWCLByQyA3JrSQyuYAqnQ= go.sum: h1:5k8nkcBSvltjOO5RLflnXevOJXndlKIMbvVnMTX+cUU= ERROR: Service 'oauth-mock' failed to build: The command '/bin/sh -c go install github.com/RichardKnop/go-oauth2-server' returned a non-zero code: 1

I have tried the following modifications to the Dockerfile without luck:

  • Changed the golang version
  • Added go clean -modcache before go install ..

Any ideas?

UPDATE:

  • Deleting the go.sum file resolves the issue
  • Updating the go.sum file @line:59 github.com/coreos/etcd v3.3.12+incompatible h1:5k8nkcBSvltjOO5RLflnXevOJXndlKIMbvVnMTX+cUU= with the downloaded checksum will rectify that particular verification but one more mismatch arises @line:171 github.com/hashicorp/go-rootcerts v1.0.0 h1:ueI78wUjYExhCvMLow4icJnayNNFRgy0d9EGs/a1T44= which you will need to update as well, then the issue is resolved.

I would not qualify either of these as a solution, but rather a temporary fix.

@rexfordnyrk
Copy link

So I run into the same problem for etcd and I think thats the only fix now since etcd repos been having issues with repo mirrors looking at this issue thread. So definitely the checksums are not going to match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants