Closed StevenACoffman closed 3 years ago
This may be related to #81 and #78
I'm not sure what is going on, but that sounds quite inconvenient. I'll issue a new release to clear up the problem.
@StevenACoffman can you confirm that 1.8.6 makes your problem go away? Thanks
Thanks!
So in addition to updating go.mod
to v1.8.6
I also needed to add to my go.mod
:
exclude github.com/cockroachdb/errors v1.8.5
This is because in our Dockerfile we have:
ENV GOFLAGS="-mod=readonly"
ENV GOPRIVATE="github.com/Khan"
ENV GO111MODULE=on
# Moving outside of $GOPATH forces modules on without having to set ENVs
WORKDIR /src/pkg
# Add go.mod and go.sum first to maximize caching
COPY ./pkg/go.mod ./pkg/go.sum /src/pkg/
RUN go mod download -x
RUN go mod verify
This is the same thing I've encountered in other libraries (exclude github.com/ryancurrah/gomodguard v1.2.1
) where the central go module proxy got the wrong checksum. Not sure if maintainers even have any way to fix the central go module proxy checksums.
This fixes my issue though, so I appreciate your speedy response!
I apologize if this is something unique to me, but I am wondering if there was anything odd about the 1.8.5 release. I am repeatedly getting these in CI:
I tried:
go clean -cache; go clean -modcache ; go mod tidy
and yet on my cigo download -x; go mod verify
fails to verify the checksum. Just double checking that you didn't have some sort of incident.