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
@@ -152,6 +152,7 @@ stdenv.mkDerivation rec {
./skip-external-network-tests-1.15.patch
./skip-nohup-tests.patch
./skip-cgo-tests-1.15.patch
./go_no_vendor_checks.patch
] ++ [
# breaks under load: https://github.com/golang/go/issues/25628
(if stdenv.isAarch32