go-modules: Add in old modsha256 w/ warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user