From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wLqwKUAOzmQReAEASxT56A (envelope-from ) for ; Sat, 05 Aug 2023 10:54:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OPq3KUAOzmTW3wAA9RJhRA (envelope-from ) for ; Sat, 05 Aug 2023 10:54:24 +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 3363A4A43A for ; Sat, 5 Aug 2023 10:54:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=MPLBdW0i; 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-Seal: i=1; s=key1; d=yhetil.org; t=1691225664; a=rsa-sha256; cv=none; b=mexZZhSmgoD3XGIXtBw0G3aC7eOeEBOgxbnzQRTPjQd5+UKZVI8L7sqkOXy9VllYb16YUb iIURsb7dZ2OqVa51mn5FXrLyfJgA4Ge517a+tXLMSJCuT7PMkyCflkcxUUHgby6DMQOK9O eGsWK84/F1n42vH/sCopFE7nWs6w3HomN7tXnMFzLVj18d+KQPwEHPuKp2688uz5DSPyDa 794Hvpv0lVoivGnsvcBWRbJtweMDJjOAbWdum8Jg05MIJcXEOoGnbOcW5gC+SohiHhI3yU VKOgVWQ2QEio+QiPwtN1ZA1gKSNCSuBGTjdM5zM/MHmxRIMvY/wITmPJs2OArQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691225664; 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-type:content-type: 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=/2I7OEMM2OaeqJgRP99/a4FTlXcb/r4C4qGCuI7PyOQ=; b=uu7ew2EK5/f91EgvmKwBlLumyvoZnm70boUR0MHaCmQUQELiIqjpMhxY+2ptZAb6/O6+i8 mXOCJ8TqOkcEiHPIsfFWdBg07He/QW+0XY6pOpTJh006Szu5qr0FaQxbLT1m3O6cHovG0s DUH+545rFWzhkAO3tN+B8PHia5xTeAMm1l6PT1IFZQwGMTgKim/js8ZuMpuzBs3nM+1awg La2qNsoN8EdO3gOHbtKF0hqGLb3TKntbUpAQ2VdL74/kRS+4lBB04l8lE2phGqnQE7Zmxz aOiM3p0w/Ty6BU6bqEMNf5JCgdEoCIX3qjeldO8ZNGfsvdklVZFnEsgldttOkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=MPLBdW0i; 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 1qSD27-0003Mz-Hp; Sat, 05 Aug 2023 04:53:11 -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 1qSD24-0003Lu-Vs for guix-patches@gnu.org; Sat, 05 Aug 2023 04:53:09 -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 1qSD24-0007IK-Nr for guix-patches@gnu.org; Sat, 05 Aug 2023 04:53:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSD24-0007LG-Ix for guix-patches@gnu.org; Sat, 05 Aug 2023 04:53:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65075] [PATCH 01/13] gnu: Add go-github-com-chyzer-logex Resent-From: Fries Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Aug 2023 08:53:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65075 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65075@debbugs.gnu.org Cc: Fries X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169122557328018 (code B ref -1); Sat, 05 Aug 2023 08:53:08 +0000 Received: (at submit) by debbugs.gnu.org; 5 Aug 2023 08:52:53 +0000 Received: from localhost ([127.0.0.1]:55468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSD1o-0007Hl-RO for submit@debbugs.gnu.org; Sat, 05 Aug 2023 04:52:53 -0400 Received: from lists.gnu.org ([2001:470:142::17]:59418) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSBHB-0001r5-Lg for submit@debbugs.gnu.org; Sat, 05 Aug 2023 03:00:38 -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 1qSBH5-0006Wl-S8 for guix-patches@gnu.org; Sat, 05 Aug 2023 03:00:31 -0400 Received: from mail-4324.protonmail.ch ([185.70.43.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSBH3-0004sF-Tp for guix-patches@gnu.org; Sat, 05 Aug 2023 03:00:31 -0400 Date: Sat, 05 Aug 2023 07:00:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1691218827; x=1691478027; bh=/2I7OEMM2OaeqJgRP99/a4FTlXcb/r4C4qGCuI7PyOQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=MPLBdW0i2GWeM0QK89mk4jOcw5EGI5KHpEKXIlZfqxEvgF3Sbnpe/mMMTXHuwbDd6 hMBg2pjMKmJ7XLjOlKwHaaN6/rIQWUtp/e3KWa3tsVDhVH1L+e2JifWFNfXQNmMks9 VVmcpjUe59d2rS0TT49Eo16SCP8DFzHBnk1PKx8x+mehONJQDtwU69iZlVT29vfokU tmKKjifaRkuRIq3cjFPbRZqlppWUIs4dYml91Ymz54jHFbhP+kbKXYYiZE/3q54SdJ 7a4WtxQU2WmellSaV8Y1vLpt4mID3f7x0m5RBd9qE57q0CDFkU81rrC04mtgx5cklL 5kNu9lc+DcOZA== Message-ID: <2d85819290ef06485588ac5f4ba8a79c69d5e196.1691218710.git.fries1234@protonmail.com> In-Reply-To: References: Feedback-ID: 42759890:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.24; envelope-from=fries1234@protonmail.com; helo=mail-4324.protonmail.ch X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 05 Aug 2023 04:52:39 -0400 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: Fries X-ACL-Warn: , Fries via Guix-patches From: Fries 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-Spam-Score: -6.64 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 3363A4A43A X-Spam-Score: -6.64 X-TUID: tjIBpQecZuV4 * gnu/packages/golang.scm (go-github-com-chyzer-logex): New variable. * gnu/packages/patches/go-github-com-chyzer-logex-fix-tests.patch: New file= . --- gnu/packages/golang.scm | 28 +++++++++++++++++++ ...go-github-com-chzyer-logex-fix-tests.patch | 28 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 gnu/packages/patches/go-github-com-chzyer-logex-fix-tes= ts.patch diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ea6aadbe80..d99f76dc7d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -41,6 +41,7 @@ ;;; Copyright =C2=A9 2022 Christopher Howard ;;; Copyright =C2=A9 2023 Hilton Chain ;;; Copyright =C2=A9 2023 Timo Wilken +;;; Copyright =C2=A9 2023 Fries ;;; ;;; This file is part of GNU Guix. ;;; @@ -2112,6 +2113,33 @@ (define-public go-github-com-dhowett-go-plist types.") (license license:giftware)))) =20 +(define-public go-github-com-chzyer-logex + (package + (name "go-github-com-chzyer-logex") + (version "1.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/chzyer/logex") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0c9yr3r7dl3lcs22cvmh9iknihi9568wzmdywmc2irkjdrn8bpxw")) + (patches (search-patches + "go-github-com-chzyer-logex-fix-tests.patch")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/chzyer/logex" + #:phases (modify-phases %standard-phases + ;; Tests are completely broken on this package. + (delete 'check)))) + (home-page "https://github.com/chzyer/logex") + (synopsis "Golang log library") + (description "A Golang log library that supports tracing and log level= s +that works by wrapping the standard log library.") + (license license:expat))) + (define-public go-github-com-blanu-dust (package (name "go-github-com-blanu-dust") diff --git a/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patc= h b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch new file mode 100644 index 0000000000..2a9b7a228b --- /dev/null +++ b/gnu/packages/patches/go-github-com-chzyer-logex-fix-tests.patch @@ -0,0 +1,28 @@ +From bb4921ff5ab77a047ae46d3da0f35abbe3f01f41 Mon Sep 17 00:00:00 2001 +From: Fries +Date: Fri, 4 Aug 2023 20:06:20 -0700 +Subject: [PATCH] fix logex tests + +--- + logex_test.go | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/logex_test.go b/logex_test.go +index e6027f2..4c07d45 100644 +--- a/logex_test.go ++++ b/logex_test.go +@@ -46,9 +46,9 @@ func TestLogex(t *testing.T) { +=20 + =09except :=3D []string{ + =09=09".test:logex_test.go:19]aa", +-=09=09".test:logex_test.go:20][INFO] b", ++=09=09".TestLogex:logex_test.go:42][INFO] b", + =09=09".test:logex_test.go:21][INFO] c", +-=09=09".test:logex_test.go:22][ERROR] ec", ++=09=09".TestLogex:logex_test.go:42][ERROR] ec", + =09=09".(*S).hello:logex_test.go:11][WARN] warn in hello", + =09} +=20 +--=20 +2.41.0 + --=20 2.41.0