Docker build (docker build . -t p2) fails because of a package update error:
#4 30.14 go get: github.com/Sirupsen/logrus@v0.10.1-0.20160425093237-cd7d1bbe4106 updating to
#4 30.14 github.com/Sirupsen/logrus@v1.8.1: parsing go.mod:
#4 30.14 module declares its path as: github.com/sirupsen/logrus
#4 30.14 but was required as: github.com/Sirupsen/logrus
Without the package update (go get without -u flag) the build fails for an unknown reason:
#7 0.616 /bin/sh: 1: shell: not found
#7 0.621 go: go.mod file not found in current directory or any parent directory; see 'go help modules'
------
executor failed running [/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X main.Version=$(shell git describe --long --dirty)" -o /p2 .]: exit code: 1
Build is successful if golang version is set to 1.14, same as for travisCI, instead of latest/1.16
Docker build (
docker build . -t p2
) fails because of a package update error:Without the package update (
go get
without-u
flag) the build fails for an unknown reason:Build is successful if golang version is set to 1.14, same as for travisCI, instead of latest/1.16