Hacker News new | ask | show | jobs
by coder543 1534 days ago
Yes. The go.sum file that sits alongside go.mod keeps track of the hashes so that no modification like that can be made, and dependency fetches actually transparently go through a module proxy/mirror that keeps those same hashes as well, and it will prevent you from getting an altered version of a known module even if you’re starting a new project and don’t have a sum file yet. Versions can’t be republished.
1 comments

Thanks for clarification, indeed I can see go.sum being checked in on few go package repos I've checked, nice.