Running:
docker run --rm -v $(pwd):/data --workdir /data golang make
gives us the following error:
install -d .d
echo "checkmake: $(go list -f '{{ join .Deps "\n" }}' cmd/checkmake/main.go | awk '/github/ { gsub(/^github.com\/[a-z]*\/[a-z]*\//, ""); printf $0"/*.go " }')" > .d/checkmake.d
go build -ldflags "-X 'main.version=0.1.0-16-g03dd76b' -X 'main.buildTime=2019-12-23T14:56:04Z' -X 'main.builder= <>' -X 'main.goversion=go version go1.6.4 linux/amd64'" -o checkmake cmd/checkmake/main.go
cmd/checkmake/main.go:9:2: cannot find package "github.com/docopt/docopt-go" in any of:
/usr/local/go/src/github.com/docopt/docopt-go (from $GOROOT)
/go/src/github.com/docopt/docopt-go (from $GOPATH)
cmd/checkmake/main.go:10:2: cannot find package "github.com/mrtazz/checkmake/config" in any of:
/usr/local/go/src/github.com/mrtazz/checkmake/config (from $GOROOT)
/go/src/github.com/mrtazz/checkmake/config (from $GOPATH)
cmd/checkmake/main.go:11:2: cannot find package "github.com/mrtazz/checkmake/formatters" in any of:
/usr/local/go/src/github.com/mrtazz/checkmake/formatters (from $GOROOT)
/go/src/github.com/mrtazz/checkmake/formatters (from $GOPATH)
cmd/checkmake/main.go:12:2: cannot find package "github.com/mrtazz/checkmake/logger" in any of:
/usr/local/go/src/github.com/mrtazz/checkmake/logger (from $GOROOT)
/go/src/github.com/mrtazz/checkmake/logger (from $GOPATH)
cmd/checkmake/main.go:13:2: cannot find package "github.com/mrtazz/checkmake/parser" in any of:
/usr/local/go/src/github.com/mrtazz/checkmake/parser (from $GOROOT)
/go/src/github.com/mrtazz/checkmake/parser (from $GOPATH)
cmd/checkmake/main.go:14:2: cannot find package "github.com/mrtazz/checkmake/rules" in any of:
/usr/local/go/src/github.com/mrtazz/checkmake/rules (from $GOROOT)
/go/src/github.com/mrtazz/checkmake/rules (from $GOPATH)
cmd/checkmake/main.go:15:2: cannot find package "github.com/mrtazz/checkmake/validator" in any of:
/usr/local/go/src/github.com/mrtazz/checkmake/validator (from $GOROOT)
/go/src/github.com/mrtazz/checkmake/validator (from $GOPATH)
cmd/checkmake/main.go:16:2: cannot find package "github.com/olekukonko/tablewriter" in any of:
/usr/local/go/src/github.com/olekukonko/tablewriter (from $GOROOT)
/go/src/github.com/olekukonko/tablewriter (from $GOPATH)
make: *** [checkmake] Error 1
Makefile:47: recipe for target 'checkmake' failed
and on subsequent runs:
make: *** No rule to make target 'github.com/docopt/docopt-go/*.go', needed by 'checkmake'. Stop.
As this specific line in the makefile had never changed since initial commit, i thought is maybe because of a to new golang environment. But i get the same results with older golang environments
docker run --rm -v $(pwd):/data --workdir /data golang:1.7.6 makedocker run --rm -v $(pwd):/data --workdir /data golang:1.6.4 make
Running:
docker run --rm -v $(pwd):/data --workdir /data golang make
gives us the following error:and on subsequent runs:
As this specific line in the makefile had never changed since initial commit, i thought is maybe because of a to new golang environment. But i get the same results with older golang environments
docker run --rm -v $(pwd):/data --workdir /data golang:1.7.6 make
docker run --rm -v $(pwd):/data --workdir /data golang:1.6.4 make