[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: inferior: Adjust to protocol (0 1).
From: |
guix-commits |
Subject: |
02/09: inferior: Adjust to protocol (0 1). |
Date: |
Thu, 19 Mar 2020 10:14:29 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ec0a8661728f915c21058076327b398ac5c38bbe
Author: Ludovic Courtès <address@hidden>
AuthorDate: Sun Mar 15 14:34:01 2020 +0100
inferior: Adjust to protocol (0 1).
* guix/inferior.scm (port->inferior): For protocol (0 x ...), where x >= 1,
send the (() repl-version ...) form.
---
guix/inferior.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/guix/inferior.scm b/guix/inferior.scm
index 6b685ec..ec8ff8d 100644
--- a/guix/inferior.scm
+++ b/guix/inferior.scm
@@ -159,6 +159,15 @@ inferior."
(letrec ((result (inferior 'pipe pipe close (cons 0 rest)
(delay (%inferior-packages result))
(delay (%inferior-package-table result)))))
+
+ ;; For protocol (0 1) and later, send the protocol version we support.
+ (match rest
+ ((n _ ...)
+ (when (>= n 1)
+ (send-inferior-request '(() repl-version 0 1) result)))
+ (_
+ #t))
+
(inferior-eval '(use-modules (guix)) result)
(inferior-eval '(use-modules (gnu)) result)
(inferior-eval '(use-modules (ice-9 match)) result)
- branch master updated (ac75bd0 -> 5e78a87), guix-commits, 2020/03/19
- 01/09: repl: Allow clients to send their protocol version., guix-commits, 2020/03/19
- 02/09: inferior: Adjust to protocol (0 1).,
guix-commits <=
- 07/09: gnu: spdlog: Update to 1.5.0., guix-commits, 2020/03/19
- 04/09: inferior: '&inferior-exception' includes a stack trace., guix-commits, 2020/03/19
- 08/09: gnu: Add gtk-layer-shell., guix-commits, 2020/03/19
- 09/09: gnu: waybar: Update to 0.9.1., guix-commits, 2020/03/19
- 06/09: gnu: Add date., guix-commits, 2020/03/19
- 03/09: repl: Return stack traces along with exceptions., guix-commits, 2020/03/19
- 05/09: guix package: Remove unneeded import., guix-commits, 2020/03/19