Skip to content
Snippets Groups Projects
Unverified Commit 982a94e9 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

import: github: Fix incorrect no-release case.

This is a followup to 81c3dc32.

Since that commit, when /releases returned an empty JSON array, we would
not fall back to /tags because of the incorrect match.

* guix/import/github.scm (fetch-releases-or-tags): Match the empty
vector instead of the empty list.
parent 2bb29718
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ (define (decorate url) ...@@ -161,7 +161,7 @@ (define (decorate url)
url)) url))
(match (json-fetch (decorate release-url) #:headers headers) (match (json-fetch (decorate release-url) #:headers headers)
(() (#()
;; We got the empty list, presumably because the user didn't use GitHub's ;; We got the empty list, presumably because the user didn't use GitHub's
;; "release" mechanism, but hopefully they did use Git tags. ;; "release" mechanism, but hopefully they did use Git tags.
(json-fetch (decorate tag-url) #:headers headers)) (json-fetch (decorate tag-url) #:headers headers))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment