Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: