From 281ede2e7db73fa0632b80c084bce9611962b353 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 16 Sep 2021 18:27:09 -0700 Subject: import: go: Match "go-import" meta tags anywhere. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some personal sites forget to put in a element, so look anywhere for them. Partly fixes . Reported by Stephen Paul Weber . * guix/import/go.scm (fetch-module-meta-data): Match "go-import" meta tags anywhere in the page. Signed-off-by: Ludovic Courtès --- guix/import/go.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guix') diff --git a/guix/import/go.scm b/guix/import/go.scm index fe7387dec2..9769b557ae 100644 --- a/guix/import/go.scm +++ b/guix/import/go.scm @@ -480,7 +480,7 @@ build a package." (strip-.git-suffix/maybe repo-url))))) ;; (let* ((meta-data (http-fetch* (format #f "https://~a?go-get=1" module-path))) - (select (sxpath `(// head (meta (@ (equal? (name "go-import")))) + (select (sxpath `(// (meta (@ (equal? (name "go-import")))) // content)))) (match (select (html->sxml meta-data #:strict? #t)) (() #f) ;nothing selected -- cgit v1.2.3