Open p000 opened 5 years ago
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/etcd@v3.3.12+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:
go clean -modcache
before go install ..
Any ideas?
UPDATE:
go.sum
file resolves the issuego.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.
trying the above....
Docker Compose -
Error