From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cHsjKK4UEWOJTAEAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 22:23:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UKhTJ64UEWOcSQAAG6o9tA (envelope-from ) for ; Thu, 01 Sep 2022 22:23:10 +0200 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 5B84E3680E for ; Thu, 1 Sep 2022 22:23:09 +0200 (CEST) Received: from localhost ([::1]:44772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTqiS-0001xg-Ew for larch@yhetil.org; Thu, 01 Sep 2022 16:23:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTqiM-0001wC-Bj for guix-patches@gnu.org; Thu, 01 Sep 2022 16:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTqiL-0007ne-Rl for guix-patches@gnu.org; Thu, 01 Sep 2022 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTqiL-0008Gw-KS for guix-patches@gnu.org; Thu, 01 Sep 2022 16:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57118] [PATCH] gnu: Add linode-cli. Resent-From: Csepp Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Sep 2022 20:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57118 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 57118@debbugs.gnu.org, Csepp Received: via spool by 57118-submit@debbugs.gnu.org id=B57118.166206373431728 (code B ref 57118); Thu, 01 Sep 2022 20:23:01 +0000 Received: (at 57118) by debbugs.gnu.org; 1 Sep 2022 20:22:14 +0000 Received: from localhost ([127.0.0.1]:44238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTqha-0008Fg-6T for submit@debbugs.gnu.org; Thu, 01 Sep 2022 16:22:14 -0400 Received: from mx1.riseup.net ([198.252.153.129]:34114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTqhY-0008FS-4R for 57118@debbugs.gnu.org; Thu, 01 Sep 2022 16:22:12 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MJXWy3nYGzDqgj; Thu, 1 Sep 2022 20:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1662063726; bh=AGWeiPxKDyXca40iPiTWleeC2GKEaEhLdADy3eODrTM=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=VL/17dhJSP67BM2jlD3JfbUn9y350qfPUD1x8k5+rwcok8Agq0FaeFuElDP9F3A1X dVG9+UXbC8MUrBsvyIBtGgee8WjbPevXojqtGfJLbP6HMGbjGIQX5ixe3x98faZEEM zr1k+HsNCBvOzLlfQyb2Py7lL3I+UKx9G742l0Zo= X-Riseup-User-ID: 7B07E4ED2ACEFEEFCF4B7C413D8625128F198AF4EA3409524673C802B62DF9A8 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MJXWx5Twgz1yPx; Thu, 1 Sep 2022 20:22:05 +0000 (UTC) References: <20220810141843.21051-1-raingloom@riseup.net> <20220815114227.10424-1-raingloom@riseup.net> <87pmgg85ep.fsf_-_@gnu.org> <87v8q728un.fsf@riseup.net> <878rn35vdh.fsf@gnu.org> From: Csepp Date: Thu, 01 Sep 2022 22:06:32 +0200 In-reply-to: <878rn35vdh.fsf@gnu.org> Message-ID: <87fshac0bb.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662063790; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AqIaNzOl+5LWfE2A09aVdXTjb4KbaT+jwkgZR63bBck=; b=LleRN5zlU5jbjGLCWofHrh6H2m1UQ2O9xcZEqLgBiUkifYtrqkLRgKD3FjIoPykOL01/ae zgiy1CSyMKrHIHXj3dt7gjH+tCfgHusH2p0kcXgB9nG+dg1nMoF4W/sbvvBQ3aQYJjdlv1 Ud/+8RL4mGHN+S0ZgPfb5T7B1eVZRaD1/sO2CEaYayTalMDVYbtI5AJEHSNxMGnUEtJJXl 5IzhzXc7clqwc0sMiJ8VA1clPNY5Hbl2mYhIY0PF+SE8ckEk/eMEChOxto0ewLzZRa+THU uesp5H4mQdxxT/QUQI+XlRXoybRHfoV95NrpSKxRYgOUpoBy/DJsaMtprmrquA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662063790; a=rsa-sha256; cv=none; b=VIzYJ85jL3g+hU5V5MBigS3xL0/zeleDFKqdRk3jCmf0+mA69WWQcxpyBKUwwsNl/XVQnW +/1Q/jWFqjss3ogPXL2zFMBdo0uad8wJ3nM9Li+iJ+DK86pCoMNR2sev2dT6Gz3rkw0a97 G12Bnx7cKakMTF9MB5uKhjmJktGwsBLcFG7k/Q+pl8+0y3+W1xZVf0UknojlwNLahIapXf mY6eZSCwMnRI1BIjzezTzEbFL48FSQw76hpUaPhHiouDI1BnPMV3c+9lwDio5fvvRdB5zI POC69d6HVGjI/OcFvSZcTZd85MiAyfAMlQKSGHvcDsokIQPcJ1VRZWNQ+dxC3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b="VL/17dhJ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b="VL/17dhJ"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5B84E3680E X-Spam-Score: 6.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: M5q0nP+MQIb/ Ludovic Court=C3=A8s writes: > 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, c= ould 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 hopeful= ly > Linode keeps a copy of this file in a Git repo somewhere? > > TIA, > Ludo=E2=80=99. Oh wow, the git repo suggestion was head on. I didn't think they would have something like that, but alas, they do: https://github.com/linode/linode-api-docs/blob/development/openapi.yaml It doesn't really have a license though, I'm not sure if that's a problem. Would we get in trouble for redistributing it?