fetchhg: clean up md5 references

This commit is contained in:
Theodore Ni 2023-07-15 23:24:53 -07:00
parent eadaf81055
commit 4c9ed3189c
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -2,15 +2,12 @@
{ name ? null
, url
, rev ? null
, md5 ? null
, sha256 ? null
, hash ? null
, fetchSubrepos ? false
, preferLocalBuild ? true }:
if md5 != null then
throw "fetchhg does not support md5 anymore, please use sha256 or hash"
else if hash != null && sha256 != null then
if hash != null && sha256 != null then
throw "Only one of sha256 or hash can be set"
else
# TODO: statically check if mercurial as the https support if the url starts woth https.