lint: 'github-url' checker gracefully handles networking errors.
authorLudovic Courtès <ludo@gnu.org>
Thu, 24 Jun 2021 12:01:53 +0000 (14:01 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 24 Jun 2021 21:40:48 +0000 (23:40 +0200)
commit8a81ae61c183085b3a1edc4572d721ac5b2a581c
tree9f8a705edb1c7cd1b968ac8d300f9c413a95ec71
parent468a5f8676c82e17de98d12077c671823177d944
lint: 'github-url' checker gracefully handles networking errors.

Fixes <https://bugs.gnu.org/49114>.
Reported by Tobias Geerinckx-Rice <me@tobias.gr>.

* guix/lint.scm (call-with-networking-fail-safe, with-networking-fail-safe):
Move higher in the file.
* guix/lint.scm (check-github-url): Wrap call to
'follow-redirects-to-github' in 'with-networking-fail-safe'.
guix/lint.scm