[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
147/244: services: guix-publish: Remove 'compression-level' field.
From: |
guix-commits |
Subject: |
147/244: services: guix-publish: Remove 'compression-level' field. |
Date: |
Wed, 12 Apr 2023 08:49:08 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit b0a5201505ef501236d4b65beb0ee02fe2de73f4
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Mon Feb 27 00:11:40 2023 +0000
services: guix-publish: Remove 'compression-level' field.
* gnu/services/base.scm (<guix-publish-configuration>)[compression-level]:
Remove field.
(guix-publish-configuration-compression-level): Remove procedure.
(default-compression): Remove compression-level helper code.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/services/base.scm | 29 +++++++----------------------
1 file changed, 7 insertions(+), 22 deletions(-)
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 74215b677a..e5c6bf5335 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -223,7 +223,6 @@
guix-publish-configuration-port
guix-publish-configuration-host
guix-publish-configuration-compression
- guix-publish-configuration-compression-level ;deprecated
guix-publish-configuration-nar-path
guix-publish-configuration-cache
guix-publish-configuration-ttl
@@ -1986,10 +1985,7 @@ proxy of 'guix-daemon'...~%")
(default #f))
(compression guix-publish-configuration-compression
(thunked)
- (default (default-compression this-record
- (current-source-location))))
- (compression-level %guix-publish-configuration-compression-level ;deprecated
- (default #f))
+ (default (default-compression this-record)))
(nar-path guix-publish-configuration-nar-path ;string
(default "nar"))
(cache guix-publish-configuration-cache ;#f | string
@@ -2003,25 +1999,14 @@ proxy of 'guix-daemon'...~%")
(negative-ttl guix-publish-configuration-negative-ttl ;#f | integer
(default #f)))
-(define-deprecated (guix-publish-configuration-compression-level config)
- "Return a compression level, the old way."
- (match (guix-publish-configuration-compression config)
- (((_ level) _ ...) level)))
-
-(define (default-compression config properties)
+(define (default-compression config)
"Return the default 'guix publish' compression according to CONFIG, and
raise a deprecation warning if the 'compression-level' field was used."
- (match (%guix-publish-configuration-compression-level config)
- (#f
- ;; Default to low compression levels when there's no cache so that users
- ;; get good bandwidth by default.
- (if (guix-publish-configuration-cache config)
- '(("gzip" 5) ("zstd" 19))
- '(("gzip" 3) ("zstd" 3)))) ;zstd compresses faster
- (level
- (warn-about-deprecation 'compression-level properties
- #:replacement 'compression)
- `(("gzip" ,level)))))
+ ;; Default to low compression levels when there's no cache so that users
+ ;; get good bandwidth by default.
+ (if (guix-publish-configuration-cache config)
+ '(("gzip" 5) ("zstd" 19))
+ '(("gzip" 3) ("zstd" 3)))) ;zstd compresses faster
(define (guix-publish-shepherd-service config)
(define (config->compression-options config)
- 128/244: gnu: rizin: Update to 0.5.2., (continued)
- 128/244: gnu: rizin: Update to 0.5.2., guix-commits, 2023/04/12
- 124/244: gnu: pounce: Update to 3.1., guix-commits, 2023/04/12
- 131/244: gnu: linux-libre: Update to 6.2.10., guix-commits, 2023/04/12
- 133/244: home: xdg-base-directories: Set correct value for XDG_STATE_HOME., guix-commits, 2023/04/12
- 130/244: news: Add entry for 'guix shell --container --nesting'., guix-commits, 2023/04/12
- 132/244: gnu: linux-libre 6.1: Update to 6.1.23., guix-commits, 2023/04/12
- 148/244: services: desktop: Remove 'gnome-desktop-service' procedure., guix-commits, 2023/04/12
- 146/244: services: base: Remove 'console-font-service' procedure., guix-commits, 2023/04/12
- 144/244: services: sddm: Remove 'sddm-service' procedure., guix-commits, 2023/04/12
- 149/244: services: desktop: Remove 'mate-desktop-service' procedure., guix-commits, 2023/04/12
- 147/244: services: guix-publish: Remove 'compression-level' field.,
guix-commits <=
- 152/244: gnu: Add libpanel., guix-commits, 2023/04/12
- 212/244: gnu: open-adventure: Update to 1.15., guix-commits, 2023/04/12
- 232/244: status: Guard against a numerical overflow condition., guix-commits, 2023/04/12
- 161/244: gnu: Add llama-cpp., guix-commits, 2023/04/12
- 197/244: gnu: xfce4-clipman-plugin: Update to 1.6.3., guix-commits, 2023/04/12
- 171/244: gnu: ruby-pg: Update to 1.4.6., guix-commits, 2023/04/12
- 162/244: gnu: Add emacs-gptel., guix-commits, 2023/04/12
- 219/244: gnu: s6-dns: Update to 2.3.5.5., guix-commits, 2023/04/12
- 214/244: gnu: Add libxisf., guix-commits, 2023/04/12
- 206/244: gnu: emacs-treemacs-extra: Improve package style., guix-commits, 2023/04/12