[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: store: Warn about daemon deprecation.
From: |
guix-commits |
Subject: |
branch master updated: store: Warn about daemon deprecation. |
Date: |
Tue, 08 Feb 2022 10:29:39 -0500 |
This is an automated email from the git hooks/post-receive script.
mothacehe pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new f9c62b23cc store: Warn about daemon deprecation.
f9c62b23cc is described below
commit f9c62b23cc88541756656b3ec602ce987828d906
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Tue Feb 8 14:28:56 2022 +0100
store: Warn about daemon deprecation.
* guix/deprecation.scm (warn-about-old-daemon): New procedure.
* guix/store.scm (build-things): Use it to warn about old daemons.
---
guix/deprecation.scm | 7 +++++++
guix/store.scm | 2 ++
2 files changed, 9 insertions(+)
diff --git a/guix/deprecation.scm b/guix/deprecation.scm
index c66c9367f6..666e178d75 100644
--- a/guix/deprecation.scm
+++ b/guix/deprecation.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2021 Mathieu Othacehe <othacehe@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -24,6 +25,8 @@
define-deprecated/public
define-deprecated/alias
+
+ warn-about-old-daemon
warn-about-deprecation))
;;; Commentary:
@@ -32,6 +35,10 @@
;;;
;;; Code:
+(define (warn-about-old-daemon)
+ (warning (G_ "Your Guix daemon is seriously outdated, please consider
+ updating it by following the 'Upgrading Guix' documentation section.~%")))
+
(define* (warn-about-deprecation variable properties
#:key replacement)
(let ((location (and properties (source-properties->location properties))))
diff --git a/guix/store.scm b/guix/store.scm
index a93e9596d9..11dfc095b1 100644
--- a/guix/store.scm
+++ b/guix/store.scm
@@ -1442,6 +1442,8 @@ When a handler is installed with 'with-build-handler', it
is called any time
things)))
(parameterize ((current-store-protocol-version
(store-connection-version store)))
+ (when (< (current-store-protocol-version) 355) ;0x163
+ (warn-about-old-daemon))
(if (>= (store-connection-minor-version store) 15)
(build store things mode)
(if (= mode (build-mode normal))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: store: Warn about daemon deprecation.,
guix-commits <=