Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modfetch: prevent duplicate hashes in go.sum
To write go.sum, each module and then each hash is looped through. The hashes are kept in a slice and there is no check to ensure that hashes were not added or already exist in the file. This uniques the hashes of each module before writting to prevent duplicates. Fixes: #28456
- Loading branch information