Skip to content

Checksum mismatch error #38

@Ben131-Go

Description

@Ben131-Go

Background

Comparing latest tag version v2.2.3 of github.com/harenber/ptc-go from proxy.golang.org and github, there are inconsistencies.

commit time of the copy on github.com

"committer": {
      "name": "harenber",
      "email": "harenberg@gmail.com",
      "date": "2021-12-29T18:20:42Z"
    }

commit time of the copy on proxy.golang.org

{"Version":"v2.2.3","Time":"2021-12-29T16:36:45Z"}

So the checksum from the code in github does not match the checksum saved in sum.golang.org. The v2.2.3 tag of github.com/harenber/ptc-go might have been retagged after a minor edition on github.

In this case, when someone who does not use proxy.golang.org, say GOPROXY=direct, attempts to get github.com/harenber/ptc-go/v2@v2.2.3, the following error occurs.

go: downloading github.com/harenber/ptc-go/v2 v2.2.3
go: github.com/harenber/ptc-go/v2@v2.2.3: verifying module: checksum mismatch
        downloaded: h1:YOh3F1VH1vWRys2SAOa8ZFftHGYnFOJV90NpDbKJe9U=
        sum.golang.org: h1:saGN1zhWozAF2kNseDI9YCHwuCl1Seb3++gkCwVfcj8=

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.

For more information, see 'go help module-auth'.

Solution

1. Release a new tag

I would recommend releasing a new tag to ensure dependency copy in proxy.golang.org and github in sync.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions