From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CJH+CMnN1GRCXwEASxT56A (envelope-from ) for ; Thu, 10 Aug 2023 13:45:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kCnaB8nN1GS7BwEAG6o9tA (envelope-from ) for ; Thu, 10 Aug 2023 13:45:13 +0200 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 C6CEA51FE8 for ; Thu, 10 Aug 2023 13:45:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b="DSdyV4D/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691667912; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KTX7wCiI9LnY3LPYE/O9cdyHvbQ3jdE+cpGksssrpwc=; b=tVJz7z9zA6AiGNpkF2Bv7rcYW4lWOcAPkbSc7RNFxzI2ae16LCxrK9nKnfaKXB4wbvzVFv 05s2BNcW+5CJYj66YbfN3Aw3/CQvT5RajH9JofXlNFT3R26zjW+1ciZ684pK6rr0RO7eg+ iTr5CziFD/dB0zigDkSOgLROY/G43eUYm5SpqqQnjmglTSQvmaefOCUbK3olgB7RV2HDXH xgCw/G1oofO+RVt7c/OgqWm+a1fKY9UdzC2/Jwk5pZZlAZXBoqJl1GpG9x4DycdJVrIEOv 50tkupb2GmIIzQDtGFO71Xv4xCqhTNEYjmtgySfj/CiWDxwwA0v2x6yG6v3LFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691667912; a=rsa-sha256; cv=none; b=qztK9CUDiLzFaV/N3vVo7VsqPj689S/4a31f9/Jeg5zcmBwF+IopJk4Ug/ylTZJj+RvE+v d6tU7VUAjxM6brJi1VzwowhN7+hr9InmlftWZ6e7rjISX2RH9D3IPuB1wUK0ntZwgtNp3R IVzqsMHoFDDHpTMXbxx4tic7cIWQSpogysu1+oj00bZAabCx6x0Ewdqk77Bd1M5/rWH+SD sBglj+e45Wj2uB930xTMIGeujnFiXaszMZYtG6tTTyr9ro1kyh/PpHzIXLQDvyzQkNUITR ed5eUx3OhmL2xA2M1g904OWnpRi9rcMC2POdq3aQvJ34mGDbbxOxGz64qnNR4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b="DSdyV4D/"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qU46E-0000su-1N; Thu, 10 Aug 2023 07:45:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qU46B-0000pX-HJ for guix-patches@gnu.org; Thu, 10 Aug 2023 07:45:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qU46B-00057l-7g for guix-patches@gnu.org; Thu, 10 Aug 2023 07:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qU46B-00074t-2q for guix-patches@gnu.org; Thu, 10 Aug 2023 07:45:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65204] [PATCH 5/6] gnu: go-github-com-tdewolff-parse-v2: Regenerate hash. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Aug 2023 11:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65204 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65204@debbugs.gnu.org Cc: Hilton Chain Received: via spool by 65204-submit@debbugs.gnu.org id=B65204.169166784527095 (code B ref 65204); Thu, 10 Aug 2023 11:45:03 +0000 Received: (at 65204) by debbugs.gnu.org; 10 Aug 2023 11:44:05 +0000 Received: from localhost ([127.0.0.1]:41567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU45F-00072s-9O for submit@debbugs.gnu.org; Thu, 10 Aug 2023 07:44:05 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:56714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qU45C-00071x-Di for 65204@debbugs.gnu.org; Thu, 10 Aug 2023 07:44:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1691667837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KTX7wCiI9LnY3LPYE/O9cdyHvbQ3jdE+cpGksssrpwc=; b=DSdyV4D/O+l0mjvKLGGjk+oVkGEz+H16/AqUmDj9cNAGa1khlyLfikkztwLx7TrX7CH4AM 3mbgaU0Y0NJQoIk9D0UTu3KXqn6OCRvXoaVKtduzFkALw3sD8RgbusIhJ6ynoMfpcZ89YT gEziiPby7KVJFs0NZczOl78pT+YZB71YjLJyibPzCr1tNl2yjwgFfBV9zFUpP5eHArs/0w S4M8qQ4zM+bfan2HkzFXFEAohC24znv3ZILe6Cpy2zwNMJTgsEMKZE+yl17ohIccTNpcD/ OBUo61B0fwK9ryjhHTQIopIL09SpnWV7vWuQYM+Cs4cG8lVi+FwauMKGBTDS2Q== Date: Thu, 10 Aug 2023 19:43:12 +0800 Message-ID: <5fc910a54b6027a6cdbe7fe2fabf476b73861489.1691666406.git.hako@ultrarare.space> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: -- 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: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: C6CEA51FE8 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.17 X-Spam-Score: -6.17 X-TUID: 36XyiuRjtk0X * gnu/packages/golang.scm (go-github-com-tdewolff-parse-v2)[#:phases]: Add phase 'regenerate-hash. [native-inputs]: Add go-github-com-tdewolff-hasher. --- gnu/packages/golang.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 21562a135f..4360fccc0a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3471,9 +3471,22 @@ (define-public go-github-com-tdewolff-parse-v2 "1dqki9ima079k9a3l72igmx5dml8qsl9z8rzw8a433f4gjhlv320")))) (build-system go-build-system) (arguments - (list #:import-path "github.com/tdewolff/parse/v2")) + (list #:import-path "github.com/tdewolff/parse/v2" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'regenerate-hash + (lambda* (#:key import-path #:allow-other-keys) + (for-each + (lambda (dir) + (with-directory-excursion + (format #f "src/~a/~a" import-path dir) + (make-file-writable "hash.go") + (format #t "Generating `hash.go' for ~a...~%" dir) + (invoke "go" "generate"))) + '("css" "html"))))))) (native-inputs - (list go-github-com-tdewolff-test)) + (list go-github-com-tdewolff-hasher + go-github-com-tdewolff-test)) (home-page "https://github.com/tdewolff/parse") (synopsis "Go parsers for web formats") (description -- 2.41.0