distribution: v2.8.0 tag does not match checksum

I get the following error when attempting to run go mod tidy on a project that depends on this module.

        github.com/docker/distribution/registry/api/errcode: github.com/docker/distribution@v2.8.0+incompatible: verifying module: checksum mismatch
        downloaded: h1:u9vuu6qqG7nN9a735Noed0ahoUm30iipVRlhgh72N0M=
        sum.golang.org: h1:l9EaZDICImO1ngI+uTifW+ZYvvz7fKISBAKpg+MbWbY=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

The version is v2.8.0+incompatible and is in the sum.golang.org database at https://sum.golang.org/lookup/github.com/docker/distribution@v2.8.0+incompatible.

The best fix, if the original commit cannot be restored for v2.8.0+incompatible would be to publish a new v2.8.1+incompabtible release with a v2.8.1 tag.

I think the issue can be closed? @milosgajdos

We managed to reproduce this locally, If you look here https://sum.golang.org/lookup/github.com/docker/distribution@v2.8.0 you won’t find the sum there.

We think the Go sumdb contains some cached Go sum – the best course of action is to delete the Go sum db ($GOPATH/pkg/sumdb) and re-pull and everything will work fine.