import: github: Gracefully handle projects that have disappeared.
authorLudovic Courtès <ludo@gnu.org>
Fri, 24 Jul 2020 10:04:22 +0000 (12:04 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 24 Jul 2020 12:21:30 +0000 (14:21 +0200)
commitac928d3e9ebdb660f8104f3e4b890a2353787cdf
tree6b84be632b4d3f0d4769682af081341cff96093f
parenta553892215157090ff892dc5cbbe85a25e837260
import: github: Gracefully handle projects that have disappeared.

Fixes <https://bugs.gnu.org/42509>.
Reported by Alexandru-Sergiu Marton <brown121407@posteo.ro>.

* guix/import/github.scm (fetch-releases-or-tags): Use 'http-fetch'
instead of 'json-fetch', and guard against 404 errors.  Upon 404, emit a
warning and return the empty vector.
guix/import/github.scm