From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uFbSD6r1sl66HAAA0tVLHw (envelope-from ) for ; Wed, 06 May 2020 17:36:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mARcB7b1sl6qLAAA1q6Kng (envelope-from ) for ; Wed, 06 May 2020 17:36:54 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 4E62D940058 for ; Wed, 6 May 2020 17:36:52 +0000 (UTC) Received: from localhost ([::1]:45194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWNyW-0001IO-Rq for larch@yhetil.org; Wed, 06 May 2020 13:36:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWNyO-0001I0-Ks for guix-devel@gnu.org; Wed, 06 May 2020 13:36:44 -0400 Received: from mira.cbaines.net ([212.71.252.8]:36604) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWNyN-0008Qq-FM for guix-devel@gnu.org; Wed, 06 May 2020 13:36:44 -0400 Received: from localhost (unknown [46.237.174.129]) by mira.cbaines.net (Postfix) with ESMTPSA id E469D27BBE1; Wed, 6 May 2020 18:36:41 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 1be7281d; Wed, 6 May 2020 17:36:39 +0000 (UTC) References: User-agent: mu4e 1.2.0; emacs 26.3 From: Christopher Baines To: zimoun Subject: Re: Data service: package information In-reply-to: Date: Wed, 06 May 2020 18:36:37 +0100 Message-ID: <87o8r1klsq.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/06 13:36:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Scan-Result: default: False [-3.11 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49666344590953]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.11), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[mail@cbaines.net,guix-devel-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[guix.info:url,gnu.org:url]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[cbaines.net]; HAS_LIST_UNSUB(-0.01)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: d60y62Ka9/2K --=-=-= Content-Type: text/plain zimoun writes: > I am playing with "guix search / show" ('package->recutils) and I > would like to provide 2 informations: > > 1) the hyperlink to the Data Service. > 2) if the package is substituable. > > The 1) is not complicated since Guix checks if hyperlinks are > supported by the terminal. The question is: does the API is > "reliable"? > > https://data.guix.gnu.org/repository/1/branch/master/package/ The URLs can be kept working for a while if that's what you mean. > Aside, does it make sense to add the revision number (short commit > hash, e.g., abc123) and the red (X) or the green (V) close to "More > information" to easily check the status of the derivation. It avoids > one click when it is green. ;-) I'm not sure what page this relates to? > The 2) is a bit more complicated. First does it make sense? Because > the computation of a derivation is probably required, isn't it? Well, > it is related to [1], isn't? > > Is it possible to fetch such "binary availability" from the Data > Service? If yes, how? > > [1] https://lists.gnu.org/archive/html/guix-devel/2020-03/msg00337.html So this is something that I'd suggest doing without the Guix Data Service. There's has-substitutes? in (guix store) to fetch the substitute availability for a store path, and that will use the substitute servers the user has configured, which could be completely different to the ones the Guix Data Service knows about, so doing this just from the users machine is more representative. > Note that from the webpage [2], the link bottom redirect with http:// > without the 's'. I do not know if it matters. > > [2] http://hpc.guix.info/package/git I didn't think there was much value in forcing HTTPS for data.guix.gnu.org, so it works with or without TLS currently. Anyway, this all sounds exciting Simon. Let me know how you get on :) Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl6y9aVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XeWmxAArpfVAyFAAru7dEWMlRRc+ZE0lJdHpsFtUV4qebjxNExW1uXY4nuXWtHs b1fiWbv01KqGMPsIvZE5XpYbJpS5mylC16dEDb74UYLico0quQ7hT6dNS+kTs4gB oZwZ/ZrztYLdqNnE8HZa3zKrrKxnJX2EbHn4zi1JyiDbOVTfx352yC/PpoIlQQ8L Ek4nFNts81LfwUvTEF2bvFdbIs+APDWbiPmJB3FWxOiVp3qD1Al3oeqnSdcvW4rc 6whK0EdMPoiNfj00W8Hoajk6u5ESypJfY/ltXglYlES2Ci7ZKEWvHgT+O+gtZAMu 4+Ki0kD74I8NHssOamWB/PdfyEETfp/OVSBVz86hottRLZJAbvfYKBNSiixtXPg5 HhnDFKLX69cjxfc+K7Ae4RCyJm+wclKUn5SH/K2ps6WIqGG7oWvU9sPooLJKqFjS XqEObZj4EYkiY6JmVzypmc9USLrg8patzpaJ+zmHsT7rWuxqHrG8xlkR6VfF2CAn gIBIp/bwc82/jeKveFN/AhUsFtnRYcu95NgOznAJMv9M80sShxPQJrsq6Tekz3SX tVzr6Oj6zy5bZmqqxJPbZMu5maSG+kE8w5708OqQ0wSRLFq3P5SXHXr+QAtMlSDD I3NmphytIjliBkEP+GKbeXKrKUvqlZ06DTFmJCMOGAtX2NAmVtw= =cB7w -----END PGP SIGNATURE----- --=-=-=--