GNU bug report logs - #69113
[PATCH] gnu: go-github-com-schollz-progressbar-v3: Remove examples.

Previous Next

Package: guix-patches;

Reported by: Troy Figiel <troy <at> troyfigiel.com>

Date: Tue, 13 Feb 2024 22:52:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Troy Figiel <troy <at> troyfigiel.com>
To: 69113 <at> debbugs.gnu.org
Subject: [bug#69113] [PATCH] gnu: go-github-com-schollz-progressbar-v3: Remove examples.
Date: Tue, 13 Feb 2024 20:47:14 +0100
* gnu/packages/golang.scm (go-github-com-schollz-progressbar-v3): Remove
examples.
[arguments]<#:phases>: Add remove-examples phase.
---
 gnu/packages/golang.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 25e9715c79..c317e40979 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10227,6 +10227,10 @@ (define-public go-github-com-schollz-progressbar-v3
      (list #:import-path "github.com/schollz/progressbar/v3"
            #:phases
            #~(modify-phases %standard-phases
+               (add-after 'unpack 'remove-examples
+                 (lambda* (#:key import-path #:allow-other-keys)
+                   (delete-file-recursively
+                    (string-append "src/" import-path "/examples"))))
                (replace 'check
                  (lambda* (#:key tests? import-path #:allow-other-keys)
                    (when tests?

base-commit: ac470c516e19f194228edf9e348bdbc7fc10f97a
-- 
2.42.0





This bug report was last modified 1 year and 93 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.