From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oGrzECgCSWfkTwEAe85BDQ:P1 (envelope-from ) for ; Thu, 28 Nov 2024 23:52:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oGrzECgCSWfkTwEAe85BDQ (envelope-from ) for ; Fri, 29 Nov 2024 00:52:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iKCDEDcV; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=GwprNjvF; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732837928; a=rsa-sha256; cv=none; b=O8gBk6cMSGuutIKRrXk9OYlF3O3P4hx8Th38Ux7FDdO9Etox8nGlSdVINnY9rizNMPlEni MVtQRV9tPpcvG5iroyhRQQqjNdJUPqaJXVnKlXh+rWz8JAK8J5OZ/09CWuogDTtbj3Ru/c PlN1VhQcSPacPWy+oFIEiV8iqyNK9/7Zp4tmHu1/n/TvNk8S4hYbwKfQFpLpB+hckmygiS ve8cD6Jg2i+mmtBdkgQbg5omoiA3nLT7qgxEVr3DwGEBC3Lmbw0jjI7hN5cNfkcpX1QChy Luakvj77K+nATm0JLKN98yGhF1nvxgnf4XpMlrtPdGIOAwA3S64stpxstqWknw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=iKCDEDcV; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=GwprNjvF; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732837928; h=from:from:sender:sender: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=AjXTL4cGMyujTL8Dve2q/cgRQc3i3nB4SpkZl1UsLMw=; b=l3LNRNY5u6NiisGSV/MLUWAyhJq9TND/4Cb/NgExR1a/l4OODs7LZzGdBa/pfnZOnxjo7w 2thAaun2Tds7TVXg5RGpKvEMz4zB9DedTt1KSI+lEHoa0bnCtmFz+d/3PX40vpnlkobrCn 0CUqXSq44+sNPke0pQSk7aX3xQGEaRsbkwqk7w9SpRD5FogpzACHN9fxFcGi61PaW2CaDy z/AAnCCr7oHQEzVHqx7y7wzxNyJEEHO08MsdxXFqVUYJhMkz79TfgyBwg6rn281QUtF6ao WQj2+2NfT5X23ztaF4y+XRTFLT8tsLlLv/fOCBjIwgWLyI2/rMlmeXg9x8c2fQ== 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 0E5041B3FE for ; Fri, 29 Nov 2024 00:52:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGoI0-0004GW-2j; Thu, 28 Nov 2024 18:51:16 -0500 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 1tGoHn-0004Bh-Su for guix-patches@gnu.org; Thu, 28 Nov 2024 18:51:04 -0500 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 1tGoHn-0005JF-KX for guix-patches@gnu.org; Thu, 28 Nov 2024 18:51:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=AjXTL4cGMyujTL8Dve2q/cgRQc3i3nB4SpkZl1UsLMw=; b=iKCDEDcVKz4F+0GDhJ9Obaa2Bwz2ycIrhljc2iwU08TSKHyiLLMNhGa2wrw4vcrj5gJWBzq9CA+bZmYotP8Oy2G32ODQc7H4yJ606qTfTc72WP7KS7XnpWhUzfl7zBDAFWm/onYL9KFjx1DHXFd2WvjdfZaNvlx47j5ukGKjOD6cLa1McEyFjzQjigdzs/Ii92QdQT5NPJouI0YKlPQzMyYpwVT+YWl4i8bpX04aP9XINHAF8S/JArigXmMeTl4hXEeayhiqtOAwTHdi4RXGFM0KR9Nqh3Tt1PpJ3sFnY9OEtVYd69DU5ftljIfjURTWXZF+5uIBQ//vsrY8eGXt7g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGoHn-0001AR-GS for guix-patches@gnu.org; Thu, 28 Nov 2024 18:51:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74495] [PATCH 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Nov 2024 23:51:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74495 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74495@debbugs.gnu.org Cc: "Artyom V. Poptsov" , Sharlatan Hellseher Received: via spool by 74495-submit@debbugs.gnu.org id=B74495.17328378294294 (code B ref 74495); Thu, 28 Nov 2024 23:51:03 +0000 Received: (at 74495) by debbugs.gnu.org; 28 Nov 2024 23:50:29 +0000 Received: from localhost ([127.0.0.1]:40189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGoHE-000174-HU for submit@debbugs.gnu.org; Thu, 28 Nov 2024 18:50:28 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]:48316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGoH9-00016M-ES for 74495@debbugs.gnu.org; Thu, 28 Nov 2024 18:50:24 -0500 Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-3822ba3cdbcso876674f8f.0 for <74495@debbugs.gnu.org>; Thu, 28 Nov 2024 15:50:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732837763; x=1733442563; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AjXTL4cGMyujTL8Dve2q/cgRQc3i3nB4SpkZl1UsLMw=; b=GwprNjvF0rqsIhiu2u2Q/dt784jrOk0RsB8jVbiSyZwT6Ma8u1Nrk/+85ShfpraSkQ cmyupr2i7EeTdKP+6PvixtE+MjkcF2vol5tY6UgDFFOWMpCW3v9vuYo3Ur12KZal8bRd yAkZ+TAiOg+l9qGaF4xJE9Aag86fQqdQZaiF+/WbNyCpIzSxiicc3XiYJCCWSfjWq2VW ywPQbya+NRxIHj0K941um+VDqExX8kp5VyBmWa3+d7AQ/uqhP5K/fxJJh4S3LmRVHgiG +xfNKfgjQ0CYQk41OhuDXJCQB/F7p+DK3BSSRwVAryQ1PNhFjM6/BnzAG4i1ixAiCFC8 r7jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732837763; x=1733442563; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AjXTL4cGMyujTL8Dve2q/cgRQc3i3nB4SpkZl1UsLMw=; b=qOb7O6Vc5X31aJZogy5kdV5ODlZhxdqgIT5mip2bgLFZZqb75eAT2svPvZJUQWMuyJ xiazWLOLYuS6xsanvJ8zni1uqWzJ8tFp9C0Fh9WYFtqQl2u1kibfgyZDh/2SczFuB93d o5bRY3tWf61hUNPRzpB3ZACPxRW501Kvs9SPROf5JGO7HSXX2TvFLyP43uj5AzQ62GnT YmmiICl1DImnpxnhtzCFRSSNDvHlJkfo9WaObYbJ4/6JE7lF8hr3/oj0d7NUMCQ/ocCP gif7o08Ck/9qcd3fhR+wV02SLa0jGAiJywb+Y7DfKPH/Fgw1ihNo0W4X4+0gEpvo0J1i PwTg== X-Gm-Message-State: AOJu0YwP1uw+mVnsZXskJc1oQfDdb8an9RPXF1yntdy2bpBURksk1+XL hNhO2DaCOqIqQDfFqN5ye7ANetlWj0QRfU8Vk2Ek+wzMG7TGN4YmvuiKSqEQ7x4= X-Gm-Gg: ASbGncuAjLQ3KKbRDbIJ2Gr3X9l5xepCpe92Vo5AqYjSwbiDtVZ5z5bTlwAVGanUyOZ jy5vuYmzHCHgdbDIvZIO0kQxbJr1PQ1/jn3IQs5ijjPbFtPOvmYDQj21Z35++1SMlsPwctKMaxs 3+GWppWAczgVKFzqSmsAndqvF6Z3ifPWOOhKEq2zl8d+81LGub9D3Rcjr/kN/9cdEBb2ulswYOd z4xuXkrZ8NOC57duRy4wlXSOqxXz/+kM/0y0KUOZXKBoU9zLAY3qDW5kIa+nvEfcdA0MkXaXVbq XZTtE9+r9IgXsjhPVeEE8eIaLDvWj0KXCryrvU1Gdw== X-Google-Smtp-Source: AGHT+IGN0iAbUPe58oy20MZqKMMG/jYqhW4gAyN0Dm4Xy+wjzquu89vlvT2IyGh14ak/pYM8rE+4IQ== X-Received: by 2002:a5d:5f49:0:b0:382:5088:9360 with SMTP id ffacd0b85a97d-385c6ec10cbmr7443544f8f.27.1732837762687; Thu, 28 Nov 2024 15:49:22 -0800 (PST) Received: from guxtil.incerto.xyz (cpc100684-bagu15-2-0-cust967.1-3.cable.virginm.net. [86.8.111.200]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434aa7e4df1sm66735195e9.39.2024.11.28.15.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2024 15:49:22 -0800 (PST) From: Sharlatan Hellseher Date: Thu, 28 Nov 2024 23:49:01 +0000 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.08 X-Spam-Score: -3.08 X-Migadu-Queue-Id: 0E5041B3FE X-Migadu-Scanner: mx12.migadu.com X-TUID: o7M1rmDI3szq From: "Artyom V. Poptsov" * gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): New variable. Change-Id: I7fa815433d9a83e4562bdc769312dd05e0a298da Reviewed-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index d3b478dab0..81fd07f402 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1589,6 +1589,48 @@ (define-public go-github-com-charmbracelet-x-ansi ECMA-48} specs.") (license license:expat))) +(define-public go-github-com-charmbracelet-x-exp-golden + (package + (name "go-github-com-charmbracelet-x-exp-golden") + (version "0.0.0-20241121171228-5bc00623ea2f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/charmbracelet/x") + (commit (go-version->git-ref version + #:subdir "exp/golden")))) + (file-name (git-file-name name version)) + (sha256 + (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/charmbracelet/x/exp/golden" + #:unpack-path "github.com/charmbracelet/x/" + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key import-path #:allow-other-keys) + ;; Tests need to write to that files. + (with-directory-excursion (string-append "src/" import-path) + (make-file-writable "testdata/TestRequireEqualUpdate.golden") + (make-file-writable "testdata/TestRequireEqualNoUpdate.golden")))) + (add-after 'check 'post-check + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + ;; Remove modified testdata just in case. + (delete-file-recursively "testdata"))))))) + (propagated-inputs + (list go-github-com-aymanbagabas-go-udiff)) + (home-page "https://github.com/charmbracelet/x") + (synopsis "Verify @code{.golden} file equality") + (description + "Golden files (@code{.golden}) contain the raw expected output of +tests,which can contain control codes and escape sequences. @code{golden} +package provides an API for comparing Golden files.") + (license license:expat))) + (define-public go-github-com-chzyer-logex (package (name "go-github-com-chzyer-logex") -- 2.46.0