Open mrichman opened 6 years ago
Line 17 of the Makefile needs to call go get github.com/gin-gonic/gin
:
docker run --rm -it -v "${GOPATH}":/gopath -v "$(CURDIR)":/app -e "GOPATH=/gopath" -w /app golang:1.10 sh -c 'go get -u -v github.com/gin-gonic/gin && CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o app'
Completely new to go and scratching my head over how to make this work. Spent hours but getting one error after another.
It looks like the gin dependency is not being pulled into the containers at
make
time:I have the following paths shared in Docker:
Running Docker Version 18.03.1-ce-mac65 (24312) on macOS High Sierra