From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 eNJiDMAPTGeXgQAAqHPOHw:P1 (envelope-from ) for ; Sun, 01 Dec 2024 07:26:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eNJiDMAPTGeXgQAAqHPOHw (envelope-from ) for ; Sun, 01 Dec 2024 08:26:56 +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=H4t1JQLi; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NmlKUtNg; 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=1733038016; a=rsa-sha256; cv=none; b=aS/gEKMP7p6PUOY6XYMATN3RxO3JSMSh+5o0vYcIKLktJlH1l+C08ikJ84AepPbz4lroK7 KxLSIW61EfdF/MU8q+Y3gu2BC6C+dt9fQ+3skda88hIqVhVYVhHJat89JCxWGJY5Yk3GzN lsLDwaMmAqUmNfT69RG+gWeIRBmlpOOXopNI8+I5SIWZibj5N1ju1uoUmV/y2xEShieQ0g NWq6ROJCnIxZxKQF2ybLqSaTH303qrxlGKGujYlF0iIx13et4ul3CBzaXjPOeC5wQPHcf8 thu+ZDe+rpzTn2xsJt++kIl55dtlfoNJaIrYTrhnjFfW7nPNFUa9CDPV6IYNcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=H4t1JQLi; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NmlKUtNg; 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=1733038016; 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=tcp8/DM4EVLTG8KpjKJPYdVJTp18ohQRxYzGPcfmi5k=; b=fX9nJXpuC4iyg/5HPPawOOGyMUyCx/F14nyi3ZGj9P5UGz/qp+Zpjdm5Fi1jSEJIPwmTwu KjUmiKJbTt264x5gsba5K6pXsK/upeGcL20Unl9xXW8dHEtxbqDrTW4WH86iyS4B8Kv9AJ eNcYl4tJigkjkBGGmwgSpCIpuEWnd94TfxJdpSeicIDMrWbt225crwcNOKlNvSv5nrqvRk H+emZ38JJOhrlhy7n2iX/nVny1U15GuOCJuYlXJYCNwE1+mG3luqD+jyZNjQktzNDS4nQy MsHaKciEq+4yT0EmBysntgMk+LpbNp6IWvBEYsFFBiETWjY9pEZUXsWF3GIevw== 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 043E26022D for ; Sun, 01 Dec 2024 08:26:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHeLL-0001XA-PU; Sun, 01 Dec 2024 02:26:12 -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 1tHeLH-0001W3-5O for guix-patches@gnu.org; Sun, 01 Dec 2024 02:26:07 -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 1tHeLG-0007Ox-7J for guix-patches@gnu.org; Sun, 01 Dec 2024 02:26:06 -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=tcp8/DM4EVLTG8KpjKJPYdVJTp18ohQRxYzGPcfmi5k=; b=H4t1JQLiM7I1brC0Ej9XZnOTd1CpjmUoudBx1EwBvHdycMtrtKO2PSCgwKrugQaX9dXK+Vj2rRVe+Oezi4oXCxAs8LZ1cGRjDDhqAZA9Hil3Caqcf85xfU6ug7EPTYFy0HFn6XZDqfVIVz/oLSp0UJCl3xXFAC+hEBLvJOJn5wEG/YEVaZCyBTnwqrP5LMwLvSItVrtJNhb9i1Lt2JzviBKcn0IAQUv7iVmIwW0WyPsqq4mGiHaAR7N6g++MvYxESRqT9FwhSVrwT4mE5MnJsleouSM/tDqlt3CTrFc/VjsHdi9wS+C6NPw5sWNuKUG2NS6ZNhvIVbsjViQzviG2/g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHeLG-0007o2-2N for guix-patches@gnu.org; Sun, 01 Dec 2024 02:26:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74495] [PATCH v3 07/15] gnu: Add go-github-com-charmbracelet-x-exp-golden. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Dec 2024 07:26:06 +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.173303792329790 (code B ref 74495); Sun, 01 Dec 2024 07:26:06 +0000 Received: (at 74495) by debbugs.gnu.org; 1 Dec 2024 07:25:23 +0000 Received: from localhost ([127.0.0.1]:50045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHeKZ-0007kN-GO for submit@debbugs.gnu.org; Sun, 01 Dec 2024 02:25:23 -0500 Received: from mail-lf1-f46.google.com ([209.85.167.46]:40726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHeKX-0007h0-J3 for 74495@debbugs.gnu.org; Sun, 01 Dec 2024 02:25:22 -0500 Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-53dd2fba94fso563018e87.3 for <74495@debbugs.gnu.org>; Sat, 30 Nov 2024 23:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733037855; x=1733642655; 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=tcp8/DM4EVLTG8KpjKJPYdVJTp18ohQRxYzGPcfmi5k=; b=NmlKUtNgRJHWukvrYrLiYX9/gPu3P9D5ZRpeJDMWB/mLVkATC74/0TqkWUyIBoUKys wT38nn5JIG/tPEYAopGaM0SzRvEayjpjZ+frMd13qWWtLN5BryR/P6yAKb2DBEIgFak5 nWA8U29AFuoH0PrvjBZvbN61bdjgYSzrnAOicqJeZHQSiCcW48y1ACuSLRCLGN9eXjxD Y6XUU5sMTKZPqGwlMVgvJfsZGyiPfJztJLzU/YSlpFO2eDhRAdWqE67mKKU+O0E/G272 AZoI2fRidgoBnhenAg4LNc/bjYWw2d+jSEZKYnmRfRaGdZs0KZ6+TsXpfKoL0M+/FTDa crzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733037855; x=1733642655; 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=tcp8/DM4EVLTG8KpjKJPYdVJTp18ohQRxYzGPcfmi5k=; b=xRP3A3gFg4K2gy0nKUeepBz8WOAJ7y3dMrgonAsBXWFT/I4K21o3Aaps3RgPr2UlY+ XsZShA2+lWVFwKY1EeGZOO8gUG8wc4qi94aKSsAMRC4bRRuGclGVO/NUCbGAw5+7ZaAo d/67nuruCKgQAR/eErJUaLhRwq99l9EJJIWTcmpTUKbk8kdWZB4J8M/sb2oELgL/yxYe CWmcf0GSV8FZXJKJlgBoxoJjZF+TfgaAblHR0EpkdHl0yFc0ptskSUumSfMdJqyvMQ8v benwLLTf2qCapYp/kvjhz2Pf6XOxFwFWK1Y20YDrZws3rtaXpPcP7Ifgk8Sbee09XV9z 7hqw== X-Gm-Message-State: AOJu0Yw41e8YlsXSv25+RutTUkBEuDywk0pPTLHhvNSsa3KVg4Ncdu07 3i2T7Zo+6D1nR+sjaapqT/GAOTJ+wEFqxmRvjC3qybVreitJ/U2w0SM11G6v X-Gm-Gg: ASbGncvD7VqlGkkcFANmj74uImArKH9Jc3Yl3dDOq03wPkPJHykGtGMNBk0SGp5c/X+ 5TVSWZi3Y4n0tTiceR4XHDLbMU6QcqYzXgm0JCr3The7MmPz7/FRmUu39buYPwyUuGokepY6AyC E2s1g0pKMqgeecCZhUmsNZTabS+td5OKS0v8H1bTLIslmwtxV1ND+nfVPFuNREOFOuTnC1yiCP4 G5KQ1/GFoQM5nCJdxYQ9aIiowVgM0usK6q56QHjnM+SoMqvGoXs X-Google-Smtp-Source: AGHT+IEBk8Bm6q03TGJuUg6/6JbQOfqLSr5ET+biRzhf9U8gKtUVcqQZRSaFRH/1TN+LcNIojF9DpQ== X-Received: by 2002:a2e:be87:0:b0:2fb:5034:d0fa with SMTP id 38308e7fff4ca-2ffd6008bc2mr24285881fa.4.1733037855367; Sat, 30 Nov 2024 23:24:15 -0800 (PST) Received: from elephant.. ([95.79.11.131]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ffdfc74f88sm8579651fa.72.2024.11.30.23.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2024 23:24:14 -0800 (PST) From: "Artyom V. Poptsov" Date: Sun, 1 Dec 2024 10:23:43 +0300 Message-ID: <504f3e3851a5ea1bf844aba32ff18ba1f2b5f1a9.1733037809.git.poptsov.artyom@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <70fd8cbea4aa384418b66083166f78acc2774182.1733037809.git.poptsov.artyom@gmail.com> References: <70fd8cbea4aa384418b66083166f78acc2774182.1733037809.git.poptsov.artyom@gmail.com> 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: -4.11 X-Spam-Score: -4.11 X-Migadu-Queue-Id: 043E26022D X-Migadu-Scanner: mx12.migadu.com X-TUID: bMZ7WI78qURe * 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 729d4020b9..3002144ffd 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -1612,6 +1612,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