x-motemen / gore

Yet another Go REPL that works nicely. Featured with line editing, code completion, and more.
MIT License
5.11k stars 148 forks source link

docker build error : missing go.sum entry for module #202

Closed QGB closed 3 years ago

QGB commented 3 years ago
/gore# docker build -t gore .
Sending build context to Docker daemon  1.076MB
Step 1/7 : FROM golang:latest
 ---> cbf5edf38f6b
Step 2/7 : ENV GOPROXY https://goproxy.io,direct
 ---> Running in 0c0058eec1cc
Removing intermediate container 0c0058eec1cc
 ---> 73885602b3c3
Step 3/7 : WORKDIR /go/src/github.com/motemen/gore/
 ---> Running in 14a4508ed817
Removing intermediate container 14a4508ed817
 ---> 1d25071c994c
Step 4/7 : COPY . .
 ---> 0e1485e9af07
Step 5/7 : RUN make install
 ---> Running in 2feec13e3c0f
go install -ldflags="-s -w -X github.com/motemen/gore/cli.revision=975d0cc" ./cmd/...
go: downloading github.com/motemen/go-quickfix v0.0.0-20200118031250-2a6e54e79a50
go: downloading github.com/peterh/liner v1.2.1
go: downloading golang.org/x/text v0.3.5
go: downloading golang.org/x/tools v0.1.2
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
/go/pkg/mod/golang.org/x/tools@v0.1.2/internal/imports/mod.go:21:2: missing go.sum entry for module providing package golang.org/x/mod/module (imported by golang.org/x/tools/internal/imports); to add:
        go get golang.org/x/tools/internal/imports@v0.1.2
/go/pkg/mod/golang.org/x/tools@v0.1.2/internal/gocommand/vendor.go:17:2: missing go.sum entry for module providing package golang.org/x/mod/semver (imported by golang.org/x/tools/internal/gocommand); to add:
        go get golang.org/x/tools/internal/gocommand@v0.1.2
/go/pkg/mod/golang.org/x/tools@v0.1.2/go/packages/external.go:15:2: missing go.sum entry for module providing package golang.org/x/sys/execabs (imported by golang.org/x/tools/go/packages); to add:
        go get golang.org/x/tools/go/packages@v0.1.2
make: *** [Makefile:17: install] Error 1
The command '/bin/sh -c make install' returned a non-zero code: 2
QGB commented 3 years ago

use golang:1.15.6-alpine3.12 Successfully built 28c4d115c985

golang:latest version go1.16.3 linux/amd64 build faild

QGB commented 3 years ago

gore running very slow on virtual machine..

itchyny commented 3 years ago

Describe the Dockerfile you are using and Go version.