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 EFIAJRa84V9TbAAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 09:27:50 +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 yPXVIBa84V9VdgAA1q6Kng (envelope-from ) for ; Tue, 22 Dec 2020 09:27:50 +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 A4AC6940142 for ; Tue, 22 Dec 2020 09:27:49 +0000 (UTC) Received: from localhost ([::1]:40950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krdxM-00085Z-GY for larch@yhetil.org; Tue, 22 Dec 2020 04:27:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krdxE-00085Q-Qr for help-guix@gnu.org; Tue, 22 Dec 2020 04:27:40 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:36834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krdxC-00011Z-Ko for help-guix@gnu.org; Tue, 22 Dec 2020 04:27:40 -0500 Received: by mail-wm1-x334.google.com with SMTP id y23so1501746wmi.1 for ; Tue, 22 Dec 2020 01:27:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=AaSBza5MNzVo1eQg1d/Nd6ZzDGtb7i2xac+ppSqsqTU=; b=BXTqCRkqN2KSk0gdGUz61mAPqgTlc5AWXJBokcqRF5alT2gtcwuvwRV8k0E6DJTLNw eDWI6E+Q9YR4uT6XdOcR9AMqmZEO12IGxPGqPT8Xe4Rc97VzGfITtkUhsU0kh72GafY+ qUZ6RNJTHoLe1Badd10Ez1dNLBNJhz86rSPCcpSndmPodclg0CxdSuAc4jBEGl5CbdvF +ZLJhL0ysW6TRIqfGIBwOJ6EyHqfxqpW9VeytAJhUhQPQWFuP5kxq3JzJePQfi17WA2K zap3cAfRPZdDHqCUCJ0maT29o5jB6f9xGoHOWLACkKxtJey+x2cK8qtD7ub390+uy7Vs 7gnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=AaSBza5MNzVo1eQg1d/Nd6ZzDGtb7i2xac+ppSqsqTU=; b=Jq4mMYfav/0it71hoYArkz1+ZGzZgiKzqehiVnpvx1CJ/VPIkFqaKGazDsbe1ks0av ujgO5IXde6qbA+0wwYe6zmGEJquPn2q9Cu+94/V9GxFQ5t02lkuFp62Dkt1idfc6RnFs lJhZxypRbeY9Xtu17uUQEd40TKdXl9B6GmxYnirTcu6fMzUIV56zkyZXWyIF0mtb9pJf HT+7sh1ASd5SYXEdzKK1yzHsWN4WDaaXH1gepY1mNTs92WJ/gS333t/Y0CGRfU+yeNUN SpJ5QWquMTzS8iwzYLJKQvHnJod7g0CoXnqWcOIsKiQtQsN8utJODNc2PaMKyXYj59tB 8cOA== X-Gm-Message-State: AOAM530yoZ1VR+H2LEpgb68qKNCagV1Xtq4QdqdurqA+gzy4YXEPdT+Y bZ/wbRzntlnOaMdsVlQAV1atrn4BdgBQOI9Q X-Google-Smtp-Source: ABdhPJytl4lQkOqYUoFXCBI8VkhtlW7VmZpFrC2hM3EogqyQkKsOYsSxUWwTcshONK15yUWjchI7zA== X-Received: by 2002:a05:600c:258:: with SMTP id 24mr21275420wmj.16.1608629255905; Tue, 22 Dec 2020 01:27:35 -0800 (PST) Received: from phil-XPS-13-9360 (host-78-147-225-8.as13285.net. [78.147.225.8]) by smtp.gmail.com with ESMTPSA id a25sm21617362wmb.25.2020.12.22.01.27.34 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Dec 2020 01:27:35 -0800 (PST) References: <85czzbx878.fsf@beadling.co.uk> <85bleqx9mo.fsf@beadling.co.uk> <86wnxb9wxh.fsf@gmail.com> User-agent: mu4e 1.2.0; emacs 26.3 From: Phil To: zimoun Subject: Re: guix pull only from private channel In-reply-to: <86wnxb9wxh.fsf@gmail.com> Date: Tue, 22 Dec 2020 09:27:34 +0000 Message-ID: <858s9qxkah.fsf@beadling.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a00:1450:4864:20::334; envelope-from=phil@beadling.co.uk; helo=mail-wm1-x334.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beadling-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=BXTqCRkq; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: A4AC6940142 X-Spam-Score: -2.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: Q7Ekr8sjXfNg zimoun writes: > Hi, > > Do not take the snippet as bullet-proof. It is a quick example to > illustrate the Guix power. ;-) Yep understood - it was a good starting point for me to expand on! > You mean that: > > $ guix pull -C /tmp/one-channel.scm -p /tmp/one > /tmp/one-channel.scm:2:1: error: 'guix' channel is lacking > hint: Make sure your list of channels contains one channel named `guix' p= roviding the core of Guix. Yes - I think I understand now, having re-read parts of the manual. A channel.scm represents a guix channel AND optional other channels. It has to describe where guix is. > I am not sure to understand what you want to do, but you can pin one > =E2=80=9Cguix=E2=80=9D version with something like: > > --8<---------------cut here---------------start------------->8--- > (list > (channel > (name 'past) > (url "https://gitlab.inria.fr/guix-hpc/guix-past.git")) > (channel > (name 'guix) ; avoid to recompute heavy derivations and build modules > (url "https://git.savannah.gnu.org/git/guix.git") > (commit "d62c9b2671be55ae0305bebfda17b595f33797f2"))) ; v1.1.0 > --8<---------------cut here---------------end--------------->8--- > Yep this is what I've ended up doing - but am still a bit surprised that even with a pinned guix commit id, and a private channel containing a single trivial package with available substitute, doing a 'git pull' is still fairly expensive (approx 1min). This is quicker than pulling latest guix, of course - so there is some improvement. I was hoping that pinning the guix channel would make 'guix pull' pretty fast. My guess is that even though no packages are downloaded to update the guix channel, time is still required to create the updated profile with the pinned guix and the update to the single package in my private channel? ------- In my (simple/limited) use-case I can avoid the 'guix pull' altogether by u= sing use of GUIX_PACKAGE_PATH to point to my local packages that I'm updating - no 'guix pull' is then needed (unlike a local channel/git repo) and I get rid of the 1min wait. This works well but having read this in the cookbook: "Note: Starting from Guix 0.16, the more flexible Guix channels are the preferred way and supersede =E2=80=98GUIX_PACKAGE_PATH=E2=80=99." I'm wondering GUIX_PACKAGE_PATH is ultimately going to be removed, and replaced by local clones of channels (which I accept are far more flexible, but in my specific use-case less efficient)? I don't suppose anyone cares to comment on if GUIX_PACKAGE_PATH is likely to be completely phased out in favor of channels or if it is recognized as separately useful to channels? Personally I think GUIX_PACKAGE_PATH still serves some practical purpose, which is not as well covered by channels?