]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modfetch/zip_sum_test: long test for zip sum stability
authorJay Conrod <jayconrod@google.com>
Fri, 1 Nov 2019 19:59:46 +0000 (15:59 -0400)
committerJay Conrod <jayconrod@google.com>
Thu, 7 Nov 2019 15:10:59 +0000 (15:10 +0000)
commitf7d0a4212167bf15d64fbcfb5587f3c5636e1874
treea846bc9bb68b0ddc1f2da3a31df772fb5890e625
parent73d57bf80f42eda964768e1761b02ce9257638dc
cmd/go/internal/modfetch/zip_sum_test: long test for zip sum stability

This CL adds a new test package which downloads specific versions of
~1000 modules in direct mode and verifies that modules have the same
sums and the zip files have the same SHA-256 hashes.

This test takes a long time to run and depends heavily on external
data that may disappear. It must be enabled manually with -zipsum.

Fixes #35290

Change-Id: Ic6959e685096e8b09cea291f19d5bd0255432284
Reviewed-on: https://go-review.googlesource.com/c/go/+/204838
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modfetch/zip_sum_test/testdata/zip_sums.csv [new file with mode: 0644]
src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go [new file with mode: 0644]