Clear the module cache to force Go to re-download dependencies and regenerate checksums. Run the following command to remove the cached module data and then retry your build:
go clean -modcache
This deletes the GOMODCACHE directory (default: ~/go/pkg/mod) and the go.sum file's cached verification data, resolving mismatches caused by corrupted downloads or proxy inconsistencies.