From patchwork Sun Feb 18 15:09:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 60476 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7181127BBEA; Sun, 18 Feb 2024 15:10:05 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E5E0C27BBE2 for ; Sun, 18 Feb 2024 15:10:04 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbinX-0000Ev-3o; Sun, 18 Feb 2024 10:09:43 -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 1rbinW-0000EZ-0t for guix-patches@gnu.org; Sun, 18 Feb 2024 10:09:42 -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 1rbinV-0004Dn-PK for guix-patches@gnu.org; Sun, 18 Feb 2024 10:09:41 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbinq-0001uu-90 for guix-patches@gnu.org; Sun, 18 Feb 2024 10:10:02 -0500 Subject: bug#68829: [PATCH 3/3] gnu: Add git-sizer. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 18 Feb 2024 15:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68829 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Greg Hogan Cc: 68829-done@debbugs.gnu.org Mail-Followup-To: 68829@debbugs.gnu.org, ludo@gnu.org, code@greghogan.com Received: via spool by 68829-done@debbugs.gnu.org id=D68829.17082689997351 (code D ref 68829); Sun, 18 Feb 2024 15:10:02 +0000 Received: (at 68829-done) by debbugs.gnu.org; 18 Feb 2024 15:09:59 +0000 Received: from localhost ([127.0.0.1]:36346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbinn-0001uU-4B for submit@debbugs.gnu.org; Sun, 18 Feb 2024 10:09:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbink-0001uC-J3 for 68829-done@debbugs.gnu.org; Sun, 18 Feb 2024 10:09:57 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbinK-0004D7-H4; Sun, 18 Feb 2024 10:09:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=sdGPEwZX9Hn6g2IJkCIgd5mlo8MAwk6lL70fhjGKwKE=; b=i/KfHmz+zI9vzp8CNWIM 5LKx8NZ5ZuBYfAawaTRD21exLubmY1AbcRJNTipPg0G5WRWIXeVttUUob/tYS+yWfWrxdk7lqrwEm nvCRsHb7K+GFR+bAc7l+yN42Gn3ygowDDVwYHsqOLn2IuvmRxt103m1ZN7QIkVATf/+6F4+h7DHbh 8/X/GyRHeHPOmFhwVScUY5ahQec26IWKJWlfTj5fWGISYefZvi1CtjezzluewG44Fdmqs2NsHq0YE Gy0uSvJKPh9bVn9TMKXkpkGniJdPmWOEqTCxtV1JQKb81fXwTj/YqrCHP7QanuE6n0IL43h/43w1a J8o8VQ0aSVDnAQ==; From: Ludovic =?utf-8?q?Court=C3=A8s?= In-Reply-To: (Greg Hogan's message of "Tue, 30 Jan 2024 20:08:06 +0000") References: Date: Sun, 18 Feb 2024 16:09:28 +0100 Message-ID: <874je5n713.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi, Greg Hogan skribis: > * gnu/packages/version-control.scm (git-sizer): New variable. > > Change-Id: I82a61e364782dabfd59d0e81ff310fa916b5ff23 Applied with the change below (suggested by ‘guix lint’). Thanks, Ludo’. diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index ee6cd78107..afef900bbb 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -4028,12 +4028,14 @@ (define-public git-sizer (string-append (assoc-ref outputs "out") "/bin/git-sizer"))))) (replace 'check - (lambda* (#:key import-path #:allow-other-keys) - (for-each (lambda (test) - (invoke "go" "test" "-v" "-run" test import-path)) - ;; TestExec and TestSubmodule require a copy of the Git repository. - '("TestBomb" "TestFromSubdir" "TestRefgroups" - "TestRefSelections" "TestTaggedTags"))))))) + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + (for-each (lambda (test) + (invoke "go" "test" "-v" "-run" test import-path)) + ;; TestExec and TestSubmodule require a copy of the + ;; Git repository. + '("TestBomb" "TestFromSubdir" "TestRefgroups" + "TestRefSelections" "TestTaggedTags")))))))) (native-inputs (list git)) (propagated-inputs (list go-github-com-cli-safeexec