Subject: [PATCH] gnu: go-github-com-schollz-progressbar-v3: Remove examples.
From: Troy Figiel <[email-masked]>
To: [email-masked]
Date: Tue, 13 Feb 2024 20:47:14 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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