Subject: [PATCH 5/9] gnu: chezmoi: Update go version.

From: Luis Higino <[email-masked]>
Date: Sat, 18 May 2024 01:11:54 +0000

* gnu/packages/configuration-management.scm (chezmoi): Update go version.

Change-Id: Iac2d344a4b48fc9296528bee84a59598ff45c61b
---
 gnu/packages/configuration-management.scm | 67 ++++++++++++-----------
 1 file changed, 35 insertions(+), 32 deletions(-)

diff --git a/gnu/packages/configuration-management.scm b/gnu/packages/configuration-management.scm
index de27f50e0c..d67db49e7a 100644
--- a/gnu/packages/configuration-management.scm
+++ b/gnu/packages/configuration-management.scm
@@ -18,6 +18,7 @@
 
 (define-module (gnu packages configuration-management)
   #:use-module (gnu packages)
+  #:use-module (guix gexp)
   #:use-module (guix build-system go)
   #:use-module (guix git-download)
   #:use-module (gnu packages golang)
@@ -45,38 +46,40 @@ (define-public chezmoi
                 "0ildvlq7v8vnw74y4fgnv3hpq49bpl6zh1wmakfh46crwg7ffmjb"))))
     (build-system go-build-system)
     (arguments
-     `(#:import-path "github.com/twpayne/chezmoi"
-       #:install-source? #f
-       #:phases
-       (modify-phases %standard-phases
-       ;; Remove test script which expect additional user's programs available
-       ;; in the PATH. The testdata directory is removed in the latest version
-       ;; (2.46.1) of the program.
-         (add-after 'unpack 'remove-failing-test-scripts
-           (lambda* (#:key import-path #:allow-other-keys)
-             (for-each (lambda (f)
-                         (delete-file (string-append "src/" import-path "/testdata/scripts/" f)))
-                       '("bitwarden.txt"
-                         "cd.txt"
-                         "cd_unix.txt"
-                         "completion.txt"
-                         "diff.txt"
-                         "edit.txt"
-                         "editconfig.txt"
-                         "git.txt"
-                         "gopass.txt"
-                         "keepassxc.txt"
-                         "lastpass.txt"
-                         "onepassword.txt"
-                         "pass.txt"
-                         "runscriptdir_unix.txt"
-                         "script_unix.txt"
-                         "secretgeneric.txt"
-                         "secretgopass.txt"
-                         "secretkeepassxc.txt"
-                         "secretlastpass.txt"
-                         "secretonepassword.txt"
-                         "secretpass.txt")))))))
+     (list
+      #:go go-1.18
+      #:import-path "github.com/twpayne/chezmoi"
+      #:install-source? #f
+      #:phases
+      #~(modify-phases %standard-phases
+        ;; Remove test script which expect additional user's programs available
+        ;; in the PATH. The testdata directory is removed in the latest version
+        ;; (2.46.1) of the program.
+        (add-after 'unpack 'remove-failing-test-scripts
+          (lambda* (#:key import-path #:allow-other-keys)
+            (for-each (lambda (f)
+                        (delete-file (string-append "src/" import-path "/testdata/scripts/" f)))
+                      '("bitwarden.txt"
+                        "cd.txt"
+                        "cd_unix.txt"
+                        "completion.txt"
+                        "diff.txt"
+                        "edit.txt"
+                        "editconfig.txt"
+                        "git.txt"
+                        "gopass.txt"
+                        "keepassxc.txt"
+                        "lastpass.txt"
+                        "onepassword.txt"
+                        "pass.txt"
+                        "runscriptdir_unix.txt"
+                        "script_unix.txt"
+                        "secretgeneric.txt"
+                        "secretgopass.txt"
+                        "secretkeepassxc.txt"
+                        "secretlastpass.txt"
+                        "secretonepassword.txt"
+                        "secretpass.txt")))))))
     (native-inputs
      (list go-etcd-io-bbolt
            go-github-com-alecthomas-chroma
-- 
2.41.0