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 ms0.migadu.com with LMTPS id ADoUAjyt7mBcWgEAgWs5BA (envelope-from ) for ; Wed, 14 Jul 2021 11:24:12 +0200 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 CDFlOTut7mAXPQAA1q6Kng (envelope-from ) for ; Wed, 14 Jul 2021 09:24:11 +0000 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 A8D4F133A3 for ; Wed, 14 Jul 2021 11:24:11 +0200 (CEST) Received: from localhost ([::1]:58188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3b7i-00070q-Ah for larch@yhetil.org; Wed, 14 Jul 2021 05:24:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3b7b-0006tc-7h for guix-patches@gnu.org; Wed, 14 Jul 2021 05:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3b7a-0003xf-W2 for guix-patches@gnu.org; Wed, 14 Jul 2021 05:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3b7a-0004NC-Td for guix-patches@gnu.org; Wed, 14 Jul 2021 05:24:02 -0400 Subject: bug#31285: [PATCH 0/1] guix: Add git-fetch/impure. Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 14 Jul 2021 09:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 31285 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Luis Felipe Cc: 31285-done@debbugs.gnu.org Mail-Followup-To: 31285@debbugs.gnu.org, cmmarusich@gmail.com, cmmarusich@gmail.com Received: via spool by 31285-done@debbugs.gnu.org id=D31285.162625463616774 (code D ref 31285); Wed, 14 Jul 2021 09:24:02 +0000 Received: (at 31285-done) by debbugs.gnu.org; 14 Jul 2021 09:23:56 +0000 Received: from localhost ([127.0.0.1]:42899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3b7U-0004MU-BW for submit@debbugs.gnu.org; Wed, 14 Jul 2021 05:23:56 -0400 Received: from mail-pf1-f170.google.com ([209.85.210.170]:38619) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3b7Q-0004MD-Vs for 31285-done@debbugs.gnu.org; Wed, 14 Jul 2021 05:23:55 -0400 Received: by mail-pf1-f170.google.com with SMTP id j9so1490659pfc.5 for <31285-done@debbugs.gnu.org>; Wed, 14 Jul 2021 02:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ElPKYxh1ATgQK3dS34bdFLQl7Qo+gDsZRKefAcez2ig=; b=OsiwVkq0UrNC74O1h0atbMnr5DUb2VdPqh70jN/ZEdmdnNSs8bY6UrTyHAB5Z9RRef A7jKg0wWgjkoMyBxnCFc/XgpYl0qyEl2Ww5Ua86/e7pd83k6nySUQKbMmoA+VjvRHm2u HF5QzPU+zdCekQ+l7XMWayS/kZKrKlLfEdBly9fIGhVO8KXmM8bpGLOOeRR+TjkfaprE Hlh8jZ1w7SoVzR5rDX4BK1FXSvE6En9FU3o4dGHQX33rdYYdpw3bCXBvHqKzgGYFXiCz KjLhXlO5ZkmTN/kYy3V8P5EyrJP6Nv1Gvsbi5lO82GDwMqo5L3NAdSRj9O5KbYBZd7G3 OEwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ElPKYxh1ATgQK3dS34bdFLQl7Qo+gDsZRKefAcez2ig=; b=f8yjaZcMJHVrazfBV7MgYBU+xZeQlo3BIn2QLf2zYvCHxaXGvRnp4BKM+h/bUN+hnn fX8X00bec15J7VBKnXu8WkE7xQRCAJTm3PjXC0eyKtusPX+JNdF/cuhONiSfilOzDhv8 LOSidkJc3sdTuWCGQv/FJvk3BzPMxy3Rewl1uBEs+0c+tY1jL1D5vOEf6sGNCRh+XxFQ TW+TgAs4zY9E4cOTjsVomQh1B6Mu2V76gXVPCGZmNRgH1zy2KDMXEJQZsWtqg4cYte/N Ep9gCrBxCMo/3KPzhE9KReztDpZvF6XvSWsmIEDYcBut594DpD8d3jQwM6gTt6yr+Iy2 dumg== X-Gm-Message-State: AOAM532CP98EP89WcxScTF2KTlb6Xh5B2Ji7F0I76/FxiTL5pS69BRJq PbMRj5QhGdR4mTi6AMCtfUdLmMDpe65p9w== X-Google-Smtp-Source: ABdhPJz96bBwD81fXTgEnopwtNNriKMR5cgq1UXIzpsTbumr+ZSlTgRHJeP8YU62tvx4ZB6ijTAZvQ== X-Received: by 2002:a63:e118:: with SMTP id z24mr8682760pgh.212.1626254626492; Wed, 14 Jul 2021 02:23:46 -0700 (PDT) Received: from garuda-lan ([2601:601:9d01:3f90::b00d]) by smtp.gmail.com with ESMTPSA id s36sm2184335pgk.64.2021.07.14.02.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 02:23:45 -0700 (PDT) From: Chris Marusich References: <20180427081520.28645-1-cmmarusich@gmail.com> Date: Wed, 14 Jul 2021 02:23:44 -0700 In-Reply-To: (Luis Felipe's message of "Thu, 22 Oct 2020 00:44:37 +0000") Message-ID: <87sg0hz1sv.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626254651; 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:resent-to: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=ElPKYxh1ATgQK3dS34bdFLQl7Qo+gDsZRKefAcez2ig=; b=YxabY0YdprKh8rfE2bXIDnkpeoU+xYbaTLPyqid9+nSPGJPwoHdsCVgLB9QCxJdHqJ3X1S NGWKCG+VVl+qkLih58a42PonLADzkp7nuyq0SDZJHgcEgFX3G6ZyObMakmZPGcr9e+I1TB WTj4nGPBCub0xolZkF4uIOwFMXtoz88Tr9IzxY3hpHItkB6tQNbu4V4G8wSqosykEYlHXP jaG9fCT1TheRFFgnKNwbX2uorCnz2C2Z5P7nmS17kwWKPGqU5zu81LxWvzW+MPmMDp3M+/ VYsWy3prN6vfcH9U9V7uSRGXaztaT1jAwhQAh/b7zJ2kz4BsoM0h4mcpZ3tRgg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626254651; a=rsa-sha256; cv=none; b=KJ+gkvxdCsqACjyVZJt041uiQMFdeTK+JYB7QVdtSWM6OXmANkQADMaMmp9ARIYLGsoEzq yAY/JxMqmtUZwNroHZE3udWZNptEIuLPmJZsQAYJbM2mX8ZlDU5gQQ0O6eCTB8+D+zDY6H W/jP2NXmALb+1oRxDzC+8Ay3tnLCFpzLvAgA6hQsTZrJGSfugKgOShTOyAqINe1jWZC7km Zl2a1a++vVH+p0RTMmDFQ6r9/SHN4kLjlZ4AENn6+DaeFn+ITqvXPczyeDaIjfH8acteb/ M3EhOOl6ZAqsSvg96zd3uMMe+qHjoWlt2OU0BQKdfGGJ5TiL0RfkwA3JlBJG+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=OsiwVkq0; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.90 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=OsiwVkq0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: A8D4F133A3 X-Spam-Score: -0.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: qQS4uZIKhM3e --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Luis Felipe writes: >> Sometimes, a Git repository may only be available via an authenticatedSS= H connection. Even in the case of repositories that only containfree softwa= re, this situation can arise for administrative orcompliance-related reason= s. How can one define a package in such asituation? > > > Correct me if I'm wrong, but I think this is possible now. All you have t= o do is pass a git-checkout record to the package source field instead of a= n origin (see the (guix git) module). For example: > > (source > (git-checkout > (url "git@gitlab.com:luis-felipe/guile-lab.git") > (commit (string-append "v" version)))) > > I'm using this for my private packages, and it seems to work. Yes, this does work. Combined with the fact that it is now possible to "guix pull" channels over SSH, there is no need for this patch any more. The "git-checkout" gexp-compiler basically does the same thing that I was trying to do (it is still "impure" in that the fetching happens outside the store), but it does it more elegantly. I'm closing this report. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmDurSAVHGNtbWFydXNp Y2hAZ21haWwuY29tAAoJEN1AmhXYIkadPxQP/1LNLTb64wzSUwJGapQxF2KCV0TA 1DjMUpkKFXS3GgYelLFJWAJECmmjwiSaxrp3/3ujYA4h68WHYOp66IdpRcCRcteH Q/5ealPro8+vTWIzMWf8we7GAFKvVgOiwwiHX3MNT/QQMZiGLzVFBYzX/ktvnn91 4yMi7QDZjC0Jpx79RHVh18XjF5FhOcD5F1/H7dH6aJzXb202XVuvU3YgTB8kp3q+ SvNMXdnTCUKCBALMlimlgGCDtoaC5Lh7AdjT/TIDX3SX+3ea8935N7qX1FAsC3EY tFatUZy5aWB+46NR6TaIrTpGQVOSbq66oS8WmtcfOX8Jk4u0j09huictdAGVeeAF nPInIqn/OT07DXLaW+9r+7OWc53m+fDnw++P3fEdsjWWoAoHbVdOgK/Zkm3IX/tw fv6NZuppLW5WcetibvdCKd8L4yXu+qZuUk3QqLe9qeNJ4aZsvUhi94P6pSKJ6pMq YYKRtxDVb+5g7sJ51dRUMj3pr8S+tYJ8E+3aJrzSBuXWUK04pNeeMnZmuwkN6XQQ xqld7FRMVhYxJi5pyd4Uw0xWd+z2e7O3+/PF+Gom3N0kqoUUMSR9Dledz4ZKNssk 012iftCIK3dvbPQjf2Tv5fih2de55pTT2BVBNG0XK0eDItYqg4yIo1YxN1+J1VdD 90I1FSwMoAeMYHp4 =/XPX -----END PGP SIGNATURE----- --=-=-=--