The first time you add a module, Go compares its hash with the database and records it in go.sum. Later downloads must match go.sum.