go: Introduce environment variable GO_NO_VENDOR_CHECKS to relax go vendor checks

This is used in https://github.com/tweag/gomod2nix to reconstruct a
vendor metadata file.

With the vendor checks we need a lot more metadata which isn't
relevant for building packages, especially since we've already locked
the dependency graph ahead of time

This has been ported from FreeBSD: https://reviews.freebsd.org/D24122
This commit is contained in:
adisbladis
2021-01-12 18:08:41 +01:00
parent 39fbff44a8
commit 7be71af02a
4 changed files with 48 additions and 0 deletions
+1
View File
@@ -143,6 +143,7 @@ stdenv.mkDerivation rec {
./go-1.9-skip-flaky-20072.patch
./skip-external-network-tests.patch
./skip-nohup-tests.patch
./go_no_vendor_checks-1_14.patch
# fix rare TestDontCacheBrokenHTTP2Conn failure
(fetchpatch {