Subject: bug#69722: closed (Re: [bug#69722] gnu: zig-zls: Update to 0.10.0)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 13 Mar 2024 14:19:04 +0000

Your bug report

#69722: gnu: zig-zls: Update to 0.10.0

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
69722: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69722
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#69722] gnu: zig-zls: Update to 0.10.0
From: Christopher Baines <[email-masked]>
To: Justin Veilleux <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Wed, 13 Mar 2024 14:17:17 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Justin Veilleux <[email-masked]> writes:

> Here is a patch to update zig-zls to a new version compatible with the
> zig 0.10.0 compiler.
>
> [2. text/x-patch; 0001-gnu-zig-zls-Update-to-0.10.0.patch]...

Thanks! I've pushed this to master as
a00341c9e64c28dc05773b84179bedde103a001b.

Chris

Subject: gnu: zig-zls: Update to 0.10.0
From: Justin Veilleux <[email-masked]>
To: [email-masked]
Date: Mon, 11 Mar 2024 01:22:02 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Here is a patch to update zig-zls to a new version compatible with the
zig 0.10.0 compiler.

>From 51b5c0a5293305b5c2606eecdf4b03eafaac700e Mon Sep 17 00:00:00 2001
Message-ID: <51b[email-masked]>
From: terramorpha <[email-masked]>
Date: Mon, 11 Mar 2024 01:17:47 -0400
Subject: [PATCH] gnu: zig-zls: Update to 0.10.0

* gnu/packages/zig-xyz.scm (zig-zls): Update to 0.10.0 and use the zig-build-system.

Change-Id: Ie062067854ba1087b0394128c66e060df3ef5abf
---
 gnu/packages/zig-xyz.scm | 25 +++++++------------------
 1 file changed, 7 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 200b5c9940..83a22f4fc1 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2022 Maya Tomasek <[email-masked]>
 ;;; Copyright © 2023 Ekaitz Zarraga <[email-masked]>
 ;;; Copyright © 2023 Felix Lechner <[email-masked]>
+;;; Copyright © 2024 Justin Veilleux <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -97,7 +98,7 @@ (define-public tigerbeetle
 (define-public zig-zls
   (package
     (name "zig-zls")
-    (version "0.9.0")
+    (version "0.10.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -107,24 +108,12 @@ (define-public zig-zls
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1hhs7dz9rpshfd1a7x5swmix2rmh53vsqskh3mzqlrj2lgb3cnii"))))
-    (build-system gnu-build-system)
-    (inputs (list zig-0.9 python))
+                "1lsks7h3z2m4psyn9mwdylv1d6a9i3z54ssadiz76w0clbh8ch9k"))))
+    (build-system zig-build-system)
+    (inputs (list zig-0.10 python))
     (arguments
-     (list #:phases #~(modify-phases %standard-phases
-                        (delete 'configure)
-                        (replace 'build
-                          (lambda* (#:key outputs #:allow-other-keys)
-                            (let ((out (assoc-ref outputs "out")))
-                              (setenv "ZIG_GLOBAL_CACHE_DIR"
-                                      (string-append (getcwd) "/zig-cache"))
-                              (invoke "zig" "build" "install"
-                                      "-Drelease-safe" "--prefix" out))))
-                        (delete 'install)
-                        (replace 'check
-                          (lambda* (#:key tests? #:allow-other-keys)
-                            (when tests?
-                              (invoke "zig" "build" "test")))))))
+     ;; The tests fail with memory leaks.
+     (list #:tests? #f))
     (synopsis "Zig language server")
     (description
      "Zig Language Server is a language server implementing the @acronym{LSP,

base-commit: a8196632647b343f8e03c8f12fbdc0cc84ff90f6
-- 
2.41.0

Cheers.