diff options
author | Sarah Morgensen via Guix-patches via <guix-patches@gnu.org> | 2021-06-23 15:46:46 -0700 |
---|---|---|
committer | Björn Höfling <bjoern.hoefling@bjoernhoefling.de> | 2021-06-28 08:52:15 +0200 |
commit | 9d9152425e96c408357d0f4961767a5c08076c13 (patch) | |
tree | 5e22b8295b7a9e6535ff177bb409a5559b312375 /guix/import | |
parent | 912617979f80d74f79614359bd4800c70ad8d789 (diff) |
import: go: Fix match-error in 'go-package-description'
* guix/import/go.scm (go-package-description): Make sure description* is
always a list, so the result is properly matched.
Signed-off-by: Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
Diffstat (limited to 'guix/import')
-rw-r--r-- | guix/import/go.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/guix/import/go.scm b/guix/import/go.scm index d110954664..5e23d6a2b3 100644 --- a/guix/import/go.scm +++ b/guix/import/go.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz> +;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev> ;;; ;;; This file is part of GNU Guix. ;;; @@ -186,8 +187,9 @@ e.g. \"google.golang.org/protobuf/proto\"." (description (if (not (null? overview)) overview (select-content sxml))) - (description* (and (not (null? description)) - (first description)))) + (description* (if (not (null? description)) + (first description) + description))) (match description* (() #f) ;nothing selected ((p elements ...) |