This is an automated email from the git hooks/post-receive script.

wigust pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b32d129ad9 gnu: bats: Update to 1.11.0.
b32d129ad9 is described below

commit b32d129ad945052c6755b0cc4970f7827821553c
Author: Oleg Pykhalov <[email protected]>
AuthorDate: Wed May 1 10:00:54 2024 +0300

    gnu: bats: Update to 1.11.0.
    
    * gnu/packages/bash.scm (bats)[version]: Update to 1.11.0.
    [arguments]<#:builder>: Filter out symlinks in patch-shebang.
    
    Change-Id: I74405b99f91172c10b8c81caa0f3f46e1df4d74e
---
 gnu/packages/bash.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index bb3359d5d1..9ecec0a484 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2019 Mathieu Othacehe <[email protected]>
 ;;; Copyright © 2020 Zhu Zihao <[email protected]>
 ;;; Copyright © 2021 Marius Bakke <[email protected]>
+;;; Copyright © 2024 Oleg Pykhalov <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -368,7 +369,7 @@ capturing.")
 (define-public bats
   (package
     (name "bats")
-    (version "1.2.0")
+    (version "1.11.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -377,7 +378,7 @@ capturing.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0f59zh4d4pa1a7ybs5zl6h0csbqqv11lbnq0jl1dgwm1s6p49bsq"))))
+                "1dmgxcqq87vs1l23hb7ghx319w2nvn0w8z2kdxggs2b8n22wi0c2"))))
     (inputs
      (list bash coreutils guile-3.0 ;for wrap-script
            grep))
@@ -393,7 +394,12 @@ capturing.")
                                 ":" (assoc-ref %build-inputs "grep") "/bin"
                                 ":" (assoc-ref %build-inputs "guile") "/bin"
                                 ":" (getenv "PATH")))
-         (for-each (lambda (file) (patch-shebang file)) (find-files "."))
+         (for-each patch-shebang
+                   (find-files "."
+                               (lambda (file stat)
+                                 ;; Filter out symlinks.
+                                 (eq? 'regular (stat:type stat)))
+                               #:stat lstat))
          (substitute* "bin/bats"
            (("export BATS_ROOT" line)
             (string-append "BATS_ROOT=\"${BATS_ROOT:-" %output 
"/libexec/bats-core}\"\n"

Reply via email to