Commit Graph

5 Commits

Author SHA1 Message Date
lu4p
d8d784639f Validate the user provided seed. (#126)
Also allow base64 seeds without padding.

Fixes #123.
2020-09-06 15:23:26 +02:00
Daniel Martí
511779d8ff testdata: set GOPRIVATE in all but two tests (#104)
basic.txt just builds main.go without a module. Similarly, we leave
imports.txt without a GOPRIVATE, to test the 'go list -m' fallback.

For all other tests, explicitly set GOPRIVATE, to avoid two exec calls -
both 'go env GOPRIVATE' as well as 'go list -m'. Each of those calls
takes in the order of 10ms, so saving ~26 exec calls should easily add
to 200-300ms saved from 'go test -short'.
2020-08-20 11:51:55 +02:00
Daniel Martí
75e904f6d4 various minor cleanups and fixes (#99)
Error strings should never be capitalized.

A binsubstr line in one of the tests was duplicate and thus useless.

Remove duplicate or trailing spaces in test scripts.

Finally, add a TODO for an optimization I just spotted.
2020-08-14 22:46:26 +02:00
lu4p
4c64b13506 make -seed=random use the same random seed for all packages
Otherwise, a different random seed per package will break imported names.
2020-06-14 17:47:26 +01:00
lu4p
0cf8d4e7a6 add seed flag to control how builds are reproducible
Fixes #26.
2020-06-13 20:50:10 +01:00