Issues at "make release"
Tried to install auger on my linux machine. Did the steps in the instructions until "make release".
$ make release
Building release in temp directory /tmp/tmp.el6JOnIEwF
docker run
-v /tmp/tmp.el6JOnIEwF/auger:/go/src/github.com/jpbetz/auger
-w /go/src/github.com/jpbetz/auger
golang:1.16.5
/bin/bash -c "make -f /go/src/github.com/jpbetz/auger/Makefile release-docker-build GOARCH=amd64 GOOS=linux"
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
export GOPATH=/go
GOOS=linux GOARCH=amd64 GO111MODULE=on go build
go: github.com/google/[email protected] requires
github.com/niemeyer/[email protected]: missing go.sum entry; to add it:
go mod download github.com/niemeyer/pretty
make: *** [/go/src/github.com/jpbetz/auger/Makefile:53: release-docker-build] Error 1
make: *** [Makefile:41: release] Error 2
I checked if pretty is in the go.sum file and it is. Also checked if the module is listed at the go mods.
$ go list -m all | grep pretty github.com/kr/pretty v0.2.1 github.com/niemeyer/pretty
What can be the problem here?
Thanks for your help :-)
I know absolutely nothing about Go so there's probably a better way of achieving this, but I resolved this by editing this line in the Makefile:
/bin/bash -c "make -f /go/src/$(PKG)/Makefile release-docker-build GOARCH=$(GOARCH) GOOS=$(GOOS)"
to:
/bin/bash -c "go mod download github.com/niemeyer/pretty; make -f /go/src/$(PKG)/Makefile release-docker-build GOARCH=$(GOARCH) GOOS=$(GOOS)"