From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kGe2LvoHEGOx8gAAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 03:16:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KJy9LfoHEGN8JQEAG6o9tA (envelope-from ) for ; Thu, 01 Sep 2022 03:16:42 +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 AD0D612E97 for ; Thu, 1 Sep 2022 03:16:41 +0200 (CEST) Received: from localhost ([::1]:34686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTYoy-0007wR-5k for larch@yhetil.org; Wed, 31 Aug 2022 21:16:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTYoM-0007w9-ES for guix-patches@gnu.org; Wed, 31 Aug 2022 21:16:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTYoM-0006ha-6C for guix-patches@gnu.org; Wed, 31 Aug 2022 21:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTYoL-0002U9-ND for guix-patches@gnu.org; Wed, 31 Aug 2022 21:16: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 01:16: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, raingloom Received: via spool by 57118-submit@debbugs.gnu.org id=B57118.16619949409522 (code B ref 57118); Thu, 01 Sep 2022 01:16:01 +0000 Received: (at 57118) by debbugs.gnu.org; 1 Sep 2022 01:15:40 +0000 Received: from localhost ([127.0.0.1]:40795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTYnz-0002TW-PV for submit@debbugs.gnu.org; Wed, 31 Aug 2022 21:15:40 -0400 Received: from mx1.riseup.net ([198.252.153.129]:45650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTYnx-0002TJ-KN for 57118@debbugs.gnu.org; Wed, 31 Aug 2022 21:15:38 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (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 4MJ3501NyHzDqXL; Thu, 1 Sep 2022 01:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1661994932; bh=UDelt+cgRE3M6SyInbBPfYs9JglAQzoBFXXYf6YunqU=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=CqnZ8xLjTJD0rgKTWKptK1/FAekcAZtb7ibL5oMW9a6j1+blZehGUIq2jkh0pZX+U +AFhlGNueSgOGOX5ZuN3X5GIDopigssGzvtO9HvChVyyjP+cj5/kZkSDnATUpY3jip 5b9wa8+F0sUyA4DsOUMiWR16kYtOip/HzJOmpTH0= X-Riseup-User-ID: 14BBDE1868ACCD03F0EF9ABD68ECFA553CE2BFDCCAB630CE2C68024235CE50FC Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4MJ34z34gNz5vMx; Thu, 1 Sep 2022 01:15:31 +0000 (UTC) References: <20220810141843.21051-1-raingloom@riseup.net> <20220815114227.10424-1-raingloom@riseup.net> <87pmgg85ep.fsf_-_@gnu.org> From: Csepp Date: Thu, 01 Sep 2022 03:10:32 +0200 In-reply-to: <87pmgg85ep.fsf_-_@gnu.org> Message-ID: <87v8q728un.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=1661995002; 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=02Mxtf3R65EQWiuXlablxYlJmHsLkOuKYU8+r8rd9VU=; b=YxwvQQLCuDX8LL+cF5Dk8Paui5ECLQpJ8ZmX/fKOWgeZQymbM0+bb8WyFLteF7y8zkPGvn fSEFk/YkBDgCWfIOlIYEDFUgCcJiaZ1N8AHbCEYZb8WuOorpO854Kxp6La9FsnrkXqndXS eE2gSzEImp7TFQVq40GQnrqH/8akfIowH43V1cJ/A7HFI0Ym6qklIk2HQ8diSOnoY5F1/G Qx1CFXUQF+jKWY2amN2LsMeFQq3WonRs9Xl326oP/xZAG5UNp4elVSDZFV0Vy4c5y3JrGm piR+stghliOdFaKkPbLLfIXi5D1gtWzcPcDspn4aKJlI7crMVTcC+XuZYKEzEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661995002; a=rsa-sha256; cv=none; b=DRu4PaJxpQIcrfZ30ppqQse1X1/zIKNCpmzsuVumyAut/9bmS1fgCLkRiX/S7g3wKxQxHD fcvAzPj/bWrNo12l4ijWRAGf0PGivAJNV4nV5qY/vjRLmrER1e+YmRPWyf/l0d5BwwJumV RCRJEB60UW9S6H9vl+EvGGYzXz/Zsdr0JFe4BH3hKHWxNM4WbIdCZu0O+/6D4SUscvpgVK zqd5VNFK9sEEYZpcYy8KB9sGp29i/jfyZsfLVusTIV6r9AD3MdnNgjrayB/6N7Sbj5HMYZ qHhbe1lRI4X9d7r8tbTVqaDVGF/8xjYYHzli1mR5qslEYqALK4qR4VnOmMEBxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=CqnZ8xLj; 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.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=CqnZ8xLj; 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: AD0D612E97 X-Spam-Score: 6.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: xmblK530OpjT Ludovic Court=C3=A8s writes: > Hi, > > raingloom skribis: > >> From: Csepp >> >> * gnu/packages/python-xyz.scm (linode-cli) (linode-openapi-spec): New va= riables. > > [...] > >> +;; linode-cli would normally fetch this at build time >> +;; TODO: is there a way to refer to previous versions? is there even a = point >> +;; in trying to? >> +(define linode-openapi-spec >> + (origin >> + (method url-fetch) >> + (uri "https://www.linode.com/docs/api/openapi.yaml") >> + (sha256 >> + (base32 >> + "1jcjfnagjihcy03fcmn5sghdf7a80798xjgj1x7z3ncqwd5aggwg")))) > > Unfortunately, as you probably guess, this file was updated in place and > the hash is now different. > > Is there a stable URL for the specific version we=E2=80=99d want to use h= ere? > Otherwise it=E2=80=99s just too shaky: the thing will fail to build a wee= k or > month later, when linode.com decides to update that file. > > With this fixed, the patch is ready to go. > > Thanks in advance, > Ludo=E2=80=99. I skimmed the OpenAPI spec and couldn't find any mention of how to access previous versions. 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.