From 3a863020f0043c49c02b6b8eb35200e1dc078308 Mon Sep 17 00:00:00 2001 From: Peter Scheibel Date: Thu, 29 Oct 2020 22:23:36 -0700 Subject: [PATCH] CI: disable vermin check for deprecated hash (#19612) Spack has a fallback for hash checking with m55sums that may not be supported in earlier versions of Python 3.x. The comments in the Spack code acknowledge that this is best effort and may fail, but recent vermin checks (running as part of our CI) reject this. This disables vermin checks for that fallback. --- lib/spack/spack/util/crypto.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/util/crypto.py b/lib/spack/spack/util/crypto.py index 74a6ee06bd7..7e264ff0c78 100644 --- a/lib/spack/spack/util/crypto.py +++ b/lib/spack/spack/util/crypto.py @@ -45,7 +45,8 @@ def __call__(self, disable_alert=False): " supported in future Spack releases." .format(self.hash_alg)) if self.disable_security_check: - return hashlib.new(self.hash_alg, usedforsecurity=False) + return hashlib.new( # novermin + self.hash_alg, usedforsecurity=False) else: return hashlib.new(self.hash_alg)