Fix

"checksum mismatch" in Go Modules

Fix Go module checksum mismatch errors by clearing the module cache with go clean -modcache.

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.