From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id AH44CP4NZmXq2wAAG6o9tA:P1 (envelope-from ) for ; Tue, 28 Nov 2023 16:57:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AH44CP4NZmXq2wAAG6o9tA (envelope-from ) for ; Tue, 28 Nov 2023 16:57:50 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E199B27EA6 for ; Tue, 28 Nov 2023 16:57:49 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=jNQzmm8F; dkim=pass header.d=wolfsden.cz header.s=mail header.b=sybt9EHH; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701187069; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RAKU4BJg7Kk2XiJn/MyGy7TOos0p1hfHZMzO5dlzsCc=; b=XUaJnzsN4zkUYOQKBj5yaRQ+UTKbX68UlDuf33w9IUjvn+7fkDEXxlibq7K9KUC9dS+Yni amkXbOxuF2kHzMVRGb130Z+N6rfMEGwrBV//vWtrA6Wewb0s2FsYEl78P442ySZbDGOrVl 7FEv6xcBPsEHNGF6iQiMQu9u6fsWJKHSnyvODIkSm+01NYbRshKDnVJqRhp7zJF7EV60Ma giNOJ8aQSZ2RUx4kxljduXNmDe3yH0fiIYR9mq8E172+Y6CQMnuWKoWTg6x0E7wL3VoHKS swyRdEQK3e5rTtcKx/vaPO+dP8TWO/lyA6+DU+FcnCmC+GykR045gg/9s9iXoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wolfsden.cz header.s=mail header.b=jNQzmm8F; dkim=pass header.d=wolfsden.cz header.s=mail header.b=sybt9EHH; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=wolfsden.cz ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701187069; a=rsa-sha256; cv=none; b=HZBREsdqyzkTMMAJhAMTyRDTLFxIf8M4J+JBt4qK9HTquc87RX1IyH/v7otYMMB8+I7gce KWNBcZ1B+Huua22bwwheLxXSgUfOy1ZiGvzi6pbsZUad/ZtOPsN6VuJWlRT7Zhg3OWiUIq ro0ZPol4WLbMStI+VK8wjhqgIOrpMOfxxeZs4iqTthkMk6bTOnhhBfbmrvj4dvld/ZvVwN hbE9FBB4IIWX75gEHrZzRffTBag+PRjtpisho/Qdtm3jNGZhckNLBRgljI948WbHqwBWQA QtKfuXF2TntreewyMf0jkK5KR3XBc5/YcSldp38bRihlHnICGQ/l158jU4vPTA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r80Sm-0008UM-RC; Tue, 28 Nov 2023 10:57:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r80SX-0008Ri-KU for guix-devel@gnu.org; Tue, 28 Nov 2023 10:57:15 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r80SU-0000JO-Pl; Tue, 28 Nov 2023 10:57:13 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 2996525FAB0; Tue, 28 Nov 2023 15:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1701187026; bh=UpEXk2rUTkn2aCSIr0O9zP1CIm1F9N9prrR4LPKacUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=jNQzmm8FMGF71sATxmmExSJ4yzEfLI2G2IWXGFPjIGJL7hFRwGPteur6WiDVKYjVZ Wy1P7ucF8mzPkyGuaaOEChRl4qVcFlKMGStJcuAyxCNVnfiwCAms20rmduYaG/ygHj JJhYzouptT2D82o0ckFYyPLggSqsuZ/56yUnrReAHknAUPSXlxYLTNddnO4JPu7H9K 3pWSM4xTGObE9L714sVSb+R+upbCDg0OoChXFIOoMkOv6kM7bt1EAiqu7lS5f4+Vjs VzuVZRbzd1Sxbabjjz6UgX+R15DCnp3OgxxOLcFddC5wVNa0oL6PlfRYrbqk3yNY68 VVViTmmWaK0PZNDQmKQRT/5IqwA02LaYbjfN2OCOBlZYwHk114x7x6JiENm2PQEAdi KRVC5exrUDxtDnEW1PY8xW9plkIUY0swUBiLu01VM/+clqs+gzn26rmitl3fvPN6ON dczfFVGkjCTooNiPoAts9qYByOMdQjuoQKN0Xs1CJDI1CumBH/nOqlCccz2Tb0Ca9Q 42GLM1FiU58SVVm54ORdm7gxL7kgSSr25j1SSw3MW1ghPUAN6S70lQfUhEOAckJCTq wdPCvhrohE7tEQG6AP37XQWB/ZOuyv6cJYnTw1wnDChUPVPR2m62/O37H3etg69yFa 6qlNQ5iZTLOM9bzA+Jrgc7Tc= Received: from localhost (unknown [193.32.127.136]) by wolfsden.cz (Postfix) with ESMTPSA id 494DC260094; Tue, 28 Nov 2023 15:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1701187025; bh=UpEXk2rUTkn2aCSIr0O9zP1CIm1F9N9prrR4LPKacUQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=sybt9EHHiePaVzIn8AKqNN6Lv7os7lbC/m52iRNMH6M+WAmeD+dbqwxtt/vbpL4Ga 5s5KiMd/rMXO/oyBAe/xYjjh30UVWSGx998HgWQ+WaJ7MQ0SP8jroguSiwXnlF7NXT uxFx1pJKOkwJ4yVaXiTXzRxdm7QwOYgI8fZwKD3kgjnxyC0BiF685mdiCRUnRLuj03 7Q8Pcc+IZ3QKKqGDrGZXLiggSCxL2stKHKjvUbCwOcLkka2IZHjFX4PaASQMt28i8N 322RtlZYa9ZBG0FA0F32NCE+SFivNAfGR8KMnsOQNo23GaQ4bMlayFJaxHHEwxdnJM JzdNxYUCCCtoNnx3fHmVO1BNsTrIcrRIq7iJlGnuF65sN9X38pR7rgHRf2GS6Y4Syz yFpWkKt5M/6ILqUCTG/oqUNO2Yj8nn5/UR/mDT3XnA9Fnq0JMbiG3wfEHjaIuEHiaF CE0yiyMp/bZk2Jl0rRcnjVBOQhP9Y0jqZLke/8wydLJTNfyRDSwK/JAOsTQaF6K+Jg UCYPfktb5B5tOiUTyxePVGx76pjB31VmjCMf6QtgGpkDW6VnbG2rAcqlQbMqHh8PA+ IXaKjw9XCcHXgDbB1tZsKbgSmD6A/W5y2230pXOYOKR1o/I7kgb/+4iXwXy9LT58wr 5bVw6qQZCjRr4FPam1c8qCXM= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 13c26cbc; Tue, 28 Nov 2023 15:57:04 +0000 (UTC) Date: Tue, 28 Nov 2023 16:57:04 +0100 From: Tomas Volf <~@wolfsden.cz> To: Simon Tournier Cc: Ludovic =?iso-8859-1?Q?Court=E8s?= , Guix Devel Subject: Re: [maintenance] Compressed JSON files and served file extension? Message-ID: Mail-Followup-To: Simon Tournier , Ludovic =?iso-8859-1?Q?Court=E8s?= , Guix Devel References: <861qe03rtj.fsf@gmail.com> <87jzqhwyl9.fsf@gnu.org> <87ttp69ega.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VlardkP2R2OapRTG" Content-Disposition: inline In-Reply-To: <87ttp69ega.fsf@gmail.com> Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.21 X-Spam-Score: -10.21 X-Migadu-Queue-Id: E199B27EA6 X-Migadu-Scanner: mx12.migadu.com X-TUID: +vhxGTMHiOMg --VlardkP2R2OapRTG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-11-28 14:48:05 +0100, Simon Tournier wrote: > Hi Ludo, >=20 > On Thu, 16 Nov 2023 at 15:40, Ludovic Court=C3=A8s wrote: >=20 > > That said, if you become aware of actual breakage, we can revisit this! >=20 > The actual breakage is my own interaction with this file. :-) >=20 > Again, it happened to me yesterday. By habits, I do: >=20 > $ wget https://guix.gnu.org/sources.json > $ cat sources.json | jq | head >=20 > Then, >=20 > --8<---------------cut here---------------start------------->8--- > parse error: Invalid numeric literal at line 1, column 16 > cat: write error: Broken pipe > --8<---------------cut here---------------end--------------->8--- >=20 > Well, we are 6 days later my last message, 12 days after your message > and more than one month after my report; and again the same mistake. > That=E2=80=99s mistake because it does not jump to my eyes that the file = is > compressed. Yeah, I could do many on my side as change my habits, as > use curl, as have a smarter cat, as write a note, as have a better > memory, as =E2=80=A6 >=20 > However, the simplest still appears to me to have the extension > reflecting the format of the file. Similarly as it is =E2=80=99sources.j= son=E2=80=99 > and not just =E2=80=99sources=E2=80=99. But the problem is that the extension does reflect the format of the file. = The Content-Encoding is just for transmission, it does not describe the file it= self. It should be thought of as an implementation detail. Same way you do not r= eally care if you get the file over HTTP 1.1 or HTTP 2.0. This just sound like a bug in wget, I wonder if there is a bug report and/or good reason to behave like this... Would it be possible to provide both files? Sources.json.gz would *not* se= t the content-encoding (and I guess content-type would be gzip?), so that one cou= ld pick between https://guix.gnu.org/sources.json and https://guix.gnu.org/sources.json.gz depending on their preference? Have a nice day, Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --VlardkP2R2OapRTG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmVmDdAACgkQL7/ufbZ/ wakytw/+PJxiye5J2YK8MdGbN6SMBJNGrMxx/3j/am1L60IXhdYhFanbKj71gKA7 TZWfzQGxCGnvbEw+c80xVCqFjnQRGWNxKkVtJE6JMyt+bR6nz8IJxQAOBaXoUtHC ulJxkTg0J40X6dQ41tCP/08FpYkviQjh7/Ndk9G/6B/Gspj3lVcrLxNXrEOsdou6 9EAB6jvZiZ5t4cCHqZDQnYYZj6Vgbbb+JBUB1D1TkLo90qR68vck/hhG0mju7qXB JwHtRRmFEaSnWQsJx9x4GwoqjOHU6yf+9MCffXRApz4Ta1USPrCHCd73yWO3U6Vr jmiU5faSAItV6Uir6YUs58JThU4U45Hlv7WoHKljEFxC7P35FGYzE6RuFaQaA3XG mxbiW54xcjAUyIdSRaJIQ8m8NBGcmfDeuHgkv/FfVYjouyz5i4IT9yuXjLo8H/CJ lmt8aOvF04zOuxd4rC6K9XQjyNr9/zHyoWZOg1M3ddKtwuX5ElxbUDOYGUTEtoJU 9NTdSvny28XX1pITN9X/3c3Ui1bebJ1RdMHdal+obV844ooLGB8GGFiA9ALYYqcl CZYcVSSREU9x+XRifyiSFVNppwq6r0wRxFti33JhjeWs2lh/i/HpR/bVvPuxElRU VhCDa5zACx2v+y4OWUiHtdW9Vm98GWgxOwOnr4qw1bF6w8d8n9Q= =kQQy -----END PGP SIGNATURE----- --VlardkP2R2OapRTG--