Skip to content

Unable to build due to checksum mismatch #84

@bjwrk

Description

@bjwrk

Minimum reproducer:

go clean -modcache # careful
git clone https://github.com/Smartling/smartling-cli
cd smartling-cli
git checkout 441a05062fda9d1cbf706eed2719f7a4ab9d8653
GOPROXY=direct go build

Results in the following error:

go: downloading github.com/charmbracelet/x/ansi v0.9.3
verifying github.com/charmbracelet/x/[email protected]: checksum mismatch
	downloaded: h1:N/UztZRAGcBZH0peJzdQkNQ/l9O2eSvAekrnQ7VdSOY=
	go.sum:     h1:BXt5DHS/MKF+LjuK4huWrC6NCvHtexww7dMayh6GXd0=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
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'.

It works fine if I set GOPROXY=, but that's just a workaround, GOPROXY=direct should work too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions