mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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'.
This commit is contained in:
parent
d11f7f62b6
commit
baa4a2ef81
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue