From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 01 04:53:21 2022 Received: (at 57118) by debbugs.gnu.org; 1 Sep 2022 08:53:21 +0000 Received: from localhost ([127.0.0.1]:41144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTfwl-00085m-1E for submit@debbugs.gnu.org; Thu, 01 Sep 2022 04:53:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTfwi-00085X-T4 for 57118@debbugs.gnu.org; Thu, 01 Sep 2022 04:53:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTfwd-0004Ev-Dk; Thu, 01 Sep 2022 04:53:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=rhFn8asP1yVt1WQ0QGpyKaZey9HKeK0rjaRPqNJhOvk=; b=ZMUEfeZO59UqUez9DdXn 0+gckDBGlD+YQhNPhhtTZP0HbxHP12C0U6f4qq9ykO4XkMxPNKqYpAZe8V2DoASEi8BA1nf04WOPo cctjSTDGhaiZEaCVAhN3HJ8VhMGnBoZUecmWxc5IYNCUMm65KQopCpwKBtf8QOqDzMCuaCzGSn4Jb dFbyftKNWCt5UD3C3CDDwPhIUJ4xyL2EV2qb+BcXjhTZp7ZMCDeR4pitJ/aMxwNDbqJ6gLp09EvjL /2E1yBOKk6ChD+r0nGdHHMk1bVjVZ4Eo70/0+gadw64NnQfpBCQj8a4eJKtuzYy1fJumoUhqzNwFL o2mKqY61VJFp9A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:65345 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTfwa-0003XA-Nj; Thu, 01 Sep 2022 04:53:03 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Csepp Subject: Re: bug#57118: [PATCH] gnu: Add linode-cli. References: <20220810141843.21051-1-raingloom@riseup.net> <20220815114227.10424-1-raingloom@riseup.net> <87pmgg85ep.fsf_-_@gnu.org> <87v8q728un.fsf@riseup.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 15 Fructidor an 230 de la =?utf-8?Q?R=C3=A9?= =?utf-8?Q?volution=2C?= jour de la Truite X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Sep 2022 10:52:58 +0200 In-Reply-To: <87v8q728un.fsf@riseup.net> (Csepp's message of "Thu, 01 Sep 2022 03:10:32 +0200") Message-ID: <878rn35vdh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 57118 Cc: 57118@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Csepp skribis: > Ludovic Court=C3=A8s writes: [...] >>> +(define linode-openapi-spec >>> + (origin >>> + (method url-fetch) >>> + (uri "https://www.linode.com/docs/api/openapi.yaml") >>> + (sha256 >>> + (base32 >>> + "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg")))) [...] > I skimmed the OpenAPI spec and couldn't find any mention of how to > access previous versions. OK. > IMHO if there is a build failure, guix refresh -u should take care of > updating the hash. It's better than trying to use an outdated API > description without notifying the user. I should say I don=E2=80=99t know what this file is used for. :-) What I do know is that we should avoid having origins like that above that are bound to fail. Perhaps we can find another option? If the CLI tools really need the latest version of =E2=80=98openapi.yaml=E2=80=99, cou= ld they download it (and possibly cache it) at run time? Perhaps there are already provisions for that? If the tools don=E2=80=99t strictly need the latest version, then hopefully Linode keeps a copy of this file in a Git repo somewhere? TIA, Ludo=E2=80=99.