go-modules: Add in old modsha256 w/ warning

This commit is contained in:
Colin L Rice
2020-05-14 07:21:52 +01:00
committed by Jörg Thalheim
parent c5f18c44b1
commit a0ddea1d6a
2 changed files with 231 additions and 1 deletions
@@ -242,6 +242,7 @@ let
in if disabled then
throw "${package.name} not supported for go ${go.meta.branch}"
else if modSha256 != null then
throw "${package.name} should use vendorSha256 not modSha256"
lib.warn "modSha256 is deprecated and will be removed in the next release (20.09), use vendorSha256 instead" (
import ./old.nix { inherit go cacert git lib removeReferencesTo stdenv; } args')
else
package