From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 6HoeENmKtGMU0AAAbAwnHQ (envelope-from ) for ; Tue, 03 Jan 2023 21:06:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2HAuENmKtGOw8gAAauVa8A (envelope-from ) for ; Tue, 03 Jan 2023 21:06:49 +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 E8D762A675 for ; Tue, 3 Jan 2023 21:06:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCn0u-0006O7-H2; Tue, 03 Jan 2023 14:32:05 -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 1pCn0Q-0006Kq-3i for guix-devel@gnu.org; Tue, 03 Jan 2023 14:31:27 -0500 Received: from singpolyma.net ([2607:5300:60:9e74:1000::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCn0O-0001Sa-6V; Tue, 03 Jan 2023 14:31:25 -0500 Received: by singpolyma.net (Postfix, from userid 1000) id 6C9014861944; Tue, 3 Jan 2023 19:31:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1672774280; bh=+Qt/AlDmsNFIy5bll6nIO1yR5TQFYEe4NaWpaM2TClM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rRwEyAEG1AyFuCI7S/dQoTE1Leu5bnPcs5n21yUnHCqeJNE1OTcuDqGoAzSorEfBW n/lVYJIL0hN/AQ2xTUef6knfs8u7o4POlxNf/P1OUWAM7FQZNh9hA3I/1rUbknrp7g nzH01TsDD1G8iBZgg0KXQHbAPxcnmsZg0YnvJ0MM= Date: Tue, 3 Jan 2023 14:31:20 -0500 From: Stephen Paul Weber To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, 0@psycoti.ca Subject: Re: git-fetch without a hash Message-ID: References: <87h6xo2wz8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SBb3lof0cVLnfVHc" Content-Disposition: inline In-Reply-To: <87h6xo2wz8.fsf@gnu.org> Jabber-ID: singpolyma@singpolyma.net OpenPGP: id=CE519CDE; url=https://singpolyma.net/public.asc X-URL: https://singpolyma.net Received-SPF: pass client-ip=2607:5300:60:9e74:1000::; envelope-from=singpolyma@singpolyma.net; helo=singpolyma.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672776409; a=rsa-sha256; cv=none; b=Rs7eqMvio97V6O107wXvKZtCdLAzmYdkSj+5cx5fCz3IgPuO7RgaG7Xyvc7Zy3tpY/jc7l U5JAusJorDvlPx3LumLDP8AChihUoEEGKBJvgFM2chMgoy7OY82fnKetqMrMXjLcfGKpz7 rzAfrcLJM1JJNDY4k5uM3vlWwo7yzclogIknGGHHtc2g3XLGiZgn5sI5Lyxy65rE8r0Kiy PKvxgaibUTvs9m0SWVsXjJkLz35aKWBvbXkYT0DcFLuZ7TX89qZD1OLAUx3HKbkssQUHit mzoYuhsWKi8ZbBN0ifCGnLuip9u0otAKJP7wYQTTMTwVebiTJAWRd2Y2lHkL9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=rRwEyAEG; 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=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672776409; 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:openpgp:openpgp; bh=mghLouxOT0ozb2gN9IT7Y3vxIMrdM5+fF5PFTpFtCGo=; b=kOlvLhdxf+Xq+wkP54jJYBEvJUan7z7xZxeQyqH5VgBPl03myF+y1Fx8nNbuzcAr+FOU+k XZc+wdFcY9TC5BtFP7PFpFBW3LcGNlD0QZolslEqC8MteaXaTZEN32vERCIpCY9NgLru2a g/ckUSWhHquaN7KjwNFkEJIMAkzOp0j3bmf5P8+GMPEI+jKPmLrseEHT//zwo9yNBYtfsV J6jOGy01H/3z5ugnwc8U+/7xIlAo7CpxxHJqjagd72zOi0KogYyPbBG74EXqIjunNnAp1H LgiaUxm53+zImVjeTAqMZHLRZK1lJJ56SFkm414XdEkfKcKPdzAwJzk295I/ew== X-Spam-Score: -4.66 X-Migadu-Queue-Id: E8D762A675 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=rRwEyAEG; 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=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none) X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.66 X-TUID: hfzbfFUyt9yS --SBb3lof0cVLnfVHc Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable >> However, there's no real reason that git-fetch *needs* to be >> fixed-output in terms of having a hash pre-defined, at least for local >> development and other purposes. So is there a way around this? > > =E2=80=A2 write (package (source (git-checkout =E2=80=A6)) =E2=80=A6) This works well. Now I'm curious how to know what can go in the (source)= =20 field? Obviously not just (origin)... >> If having a way around it is not desirable should url-fetch consider >> this an error as well? > >I=E2=80=99m not sure; do you have an example where it=E2=80=99s not behavi= ng as >expected? Yes. When using (sha256 #f) url-fetch still has network access and works t= o=20 download things, which is inconsistent vs other fetchers. --SBb3lof0cVLnfVHc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEWeaCw+rzmiEMpzU00RwpEc5RnN4FAmO0goQACgkQ0RwpEc5R nN4NERAAtYs/cFH+HZKvIZil5/3l1gS2APTvkX6zrtqKS/LmkkIiqi67nPJ+K+k9 j95oPb5efYRWE748p6S0PJ155dfkz5k5fQD9/fuDi3HAiNPCPVxXNQCGpzgOtKhu NATK2g93vnrSJFl3yPXe3rnHUdfuPiE3cO9vub1kGmE5X9yWhreLKUS8SSC1FGGI DsRzqxCJy7daT2nHhvSS2x4k/Fxik3nChuviXmXa+gA2VcEJWEXple0DyokOM2Bh jtwWlbiUqGocdJoi7sgdyki3hhttd48UyJE0f2WmHcLXpFGlN+skN7op4sMKjPLC I9PVrbZeswQb/jQZUoaTF5J5VVMPbysoP6CcFSd6tFGkwIXyQeaxoj36PAhigzBk uGeGoCz68Km3h6RqtysQc4NIcvHwQf5m0eEG+JXtIIQIeqXprMiFf5zoxuUQ0Jb/ 3oXRoL+QFcpGsRHvNPzAUmWJ4+sVjWRMTzfL9fHS1Ug9zINcUjE1F4RGS0wThRHx nb6kv2iTzb39u8FcezKiNSZoOrLmFqwtJ4Ygd1iGpcVKsL/Y8bgU56YhG4jNrR5A FwQRwv+G1CfNmsf9bT5OJ39fW/DNTgXSCCVjNUPrGAwnqsUtp79AgoMreIYYFUuw FewKN/ARxrEwC0+ywWHd1YL4VK1WyxHpBTXwtt9SnM2tbtD6N8g= =9+V0 -----END PGP SIGNATURE----- --SBb3lof0cVLnfVHc--