From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gBhXOKbUU2FU4AAAgWs5BA (envelope-from ) for ; Wed, 29 Sep 2021 04:51:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EOILNKbUU2FjcwAAB5/wlQ (envelope-from ) for ; Wed, 29 Sep 2021 02:51:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9C15428305 for ; Wed, 29 Sep 2021 04:51:18 +0200 (CEST) Received: from localhost ([::1]:44020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVPgj-0004LR-Qk for larch@yhetil.org; Tue, 28 Sep 2021 22:51:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVPgU-0004LD-MO for guix-patches@gnu.org; Tue, 28 Sep 2021 22:51:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35862) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVPgU-0007tT-El for guix-patches@gnu.org; Tue, 28 Sep 2021 22:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mVPgU-0000IG-69 for guix-patches@gnu.org; Tue, 28 Sep 2021 22:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50884] [PATCH] import: go: Handle extra whitespace in "go-import" meta tags. Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Sep 2021 02:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50884 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50884@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16328838101063 (code B ref -1); Wed, 29 Sep 2021 02:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Sep 2021 02:50:10 +0000 Received: from localhost ([127.0.0.1]:47408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVPfd-0000H5-Uz for submit@debbugs.gnu.org; Tue, 28 Sep 2021 22:50:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:47404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mVPfc-0000Gy-SX for submit@debbugs.gnu.org; Tue, 28 Sep 2021 22:50:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVPfc-0004DK-GW for guix-patches@gnu.org; Tue, 28 Sep 2021 22:50:08 -0400 Received: from out1.migadu.com ([2001:41d0:2:863f::]:61068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVPfZ-0006u0-2H for guix-patches@gnu.org; Tue, 28 Sep 2021 22:50:08 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1632883800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qN80aSUN4S99rCh39H1P3SNUaiGOx0cU2B8iRxYdeBY=; b=ax8YCDaIILpAQ9U2qsxYYUGRcTnC1SbB/65O2NK0T4DZJXPEzGK+61ZPBxse3BifWXQj7Y 8Gy1cCFS75KjqzdPD5PNkBIoCj9mrMz/5hG/fJHvwjdhEoft49SjMgfDe3T9+7klgbGh3F WjUJj18z5PpxRl01f5LUP7efl+JCqj8= From: Sarah Morgensen Date: Tue, 28 Sep 2021 19:49:58 -0700 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:41d0:2:863f::; envelope-from=iskarian@mgsn.dev; helo=out1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632883878; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qN80aSUN4S99rCh39H1P3SNUaiGOx0cU2B8iRxYdeBY=; b=fIHMxm9D0cxNG0NhT4DnECTEfNGvKUhxY3C1NZLu6kRtioneRH87rkgBWnp0M224CRZj7F /1RmRzO+zsG2zjlWC7b3ZNX82eNKJssazpnEwDPV0TD+jwMB6nnuDk6DSeGwkXNc5ZB1f+ /VFa2XvjLLzfcNMcidcBqIOTo+XgM0/WWjPiqQKR1o2Ogz8WZQB17RmZC36CpXbQHDfGiu lZzKvaYQFRYc2ibcD4AtK1hFVNTmiKa08Lmj7dXeERTFwgg25ZXgLfzFBECfmVlrmzQGfF /1fh7JoaOqePiNM10xRLTYZ8r00GkQAumiLDcQ9FE0RO2lRrFiaEdbKrBISIzw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632883878; a=rsa-sha256; cv=none; b=PyPZ/VN7OKsVcJIlTPHxfkM4Ax91K0+0uReKgg7jD3idvI9z6C2yt7i8/RXBcZ36PsrwJl 2G1HQIjNV5hbF2nxVYt09xWPD+FZGgaFTFIzUgXyMIwrKqsqGHZCr+JCDfvsXP0v31uBU5 bDZU8t4FHfwx0N2cX1z2n6xZh1kGp09zaR60G5dBgFgsEg7O9vzzLJ8ar/JMlfKq38xYhx 7UAh1u5aFt8iw3hM12wo0JsJAqHltoFlXW5hXG+CRcFgNOswjL4Vy1kWYbSYGY9DMQwrH+ T5NpvtcLMYOKC7t64IoVAZi31tIGGljM+LlQ/KtFcKFRL1+96UzcCbxXbuniaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=ax8YCDaI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.10 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=ax8YCDaI; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 9C15428305 X-Spam-Score: 3.10 X-Migadu-Scanner: scn1.migadu.com X-TUID: LoigbpmjSeOD Some packages sites use extra whitespace in the content portion of tags, so handle that. Example: * guix/import/go.scm (fetch-module-meta-data)[go-import->module-meta]: Use 'string-tokenize' instead of 'string-split'. --- guix/import/go.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/import/go.scm b/guix/import/go.scm index 9769b557ae..ca909ab35a 100644 --- a/guix/import/go.scm +++ b/guix/import/go.scm @@ -474,7 +474,7 @@ Optionally include a VERSION string to append to the name." because goproxy servers don't currently provide all the information needed to build a package." (define (go-import->module-meta content-text) - (match (string-split content-text #\space) + (match (string-tokenize content-text char-set:graphic) ((root-path vcs repo-url) (make-module-meta root-path (string->symbol vcs) (strip-.git-suffix/maybe repo-url))))) base-commit: c582be4c38596a6a31a39c6799723dcd8b6eb909 -- 2.33.0