From 6d6fdf639baf91c0fdc9a1cc8a7ba03046a51fda Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 30 May 2019 18:23:02 +0100 Subject: Have the GitHub updater just use Git tags Some of the GitHub repositories used by GOV.UK have a few old releases, that mean the updater just picks the latest one of these, ignoring the more recent Git tags. --- guix/import/github.scm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/guix/import/github.scm b/guix/import/github.scm index 8ba5b5192d..6639ff6119 100644 --- a/guix/import/github.scm +++ b/guix/import/github.scm @@ -159,12 +159,7 @@ empty list." `((Authorization . ,(string-append "token " (%github-token)))) '()))) - (match (json-fetch release-url #:headers headers) - (#() - ;; We got the empty list, presumably because the user didn't use GitHub's - ;; "release" mechanism, but hopefully they did use Git tags. - (json-fetch tag-url #:headers headers)) - (x x))) + (json-fetch tag-url #:headers headers)) (define (latest-released-version url package-name) "Return a string of the newest released version name given a string URL like -- cgit v1.2.3