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>
This commit is contained in:
Sarah Morgensen via Guix-patches via 2021-06-23 15:46:46 -07:00 committed by Björn Höfling
parent 912617979f
commit 9d9152425e
No known key found for this signature in database
GPG Key ID: BF286CB6593E5FFD

View File

@ -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 ...)