diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-10-12 11:25:09 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-10-12 11:28:56 +0200 |
commit | baa4a2ef8109601dcd6d28b16d2d41c203f849e4 (patch) | |
tree | 2a9023d2f6596e16910ed85d00e7c889fd144a68 /guix/lint.scm | |
parent | d11f7f62b6ba2fbef8e4b00c7ae0d621f2d4281c (diff) | |
download | guix-patches-baa4a2ef8109601dcd6d28b16d2d41c203f849e4.tar guix-patches-baa4a2ef8109601dcd6d28b16d2d41c203f849e4.tar.gz |
lint: cve: Set a connection timeout.
This (notably) works around the fact that nvd.nist.gov is currently
inaccessible over IPv6.
* guix/cve.scm (fetch-vulnerabilities): Add #:timeout and pass it to
'http-fetch/cached'.
(current-vulnerabilities): Add #:timeout and pass it to
'fetch-vulnerabilities'.
* guix/lint.scm (current-vulnerabilities*): Pass #:timeout to
'current-vulnerabilities'.
Diffstat (limited to 'guix/lint.scm')
-rw-r--r-- | guix/lint.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/lint.scm b/guix/lint.scm index ec43a4dcad..e1a77e8ac7 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -1084,7 +1084,7 @@ or HTTP errors. This allows network-less operation and makes problems with the NIST server non-fatal." (with-networking-fail-safe (G_ "while retrieving CVE vulnerabilities") '() - (current-vulnerabilities))) + (current-vulnerabilities #:timeout 4))) (define package-vulnerabilities (let ((lookup (delay (vulnerabilities->lookup-proc |