From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id k67mA1iT4F8BcwAA0tVLHw (envelope-from ) for ; Mon, 21 Dec 2020 12:21:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2FHDOleT4F+aRAAAbx9fmQ (envelope-from ) for ; Mon, 21 Dec 2020 12:21:43 +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 12FB29404E5 for ; Mon, 21 Dec 2020 12:21:43 +0000 (UTC) Received: from localhost ([::1]:49256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krKC4-0000jw-CS for larch@yhetil.org; Mon, 21 Dec 2020 07:21:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krKBr-0000ii-11 for help-guix@gnu.org; Mon, 21 Dec 2020 07:21:27 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:39057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krKBo-0007Vc-Tt for help-guix@gnu.org; Mon, 21 Dec 2020 07:21:26 -0500 Received: by mail-wm1-x333.google.com with SMTP id 3so10739386wmg.4 for ; Mon, 21 Dec 2020 04:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=qZIrH+eY0e0tcR8XksPdHo6P5CyqL2CBK1XOA35lQMI=; b=oYPMB89riZ0pFyr0IsNavScudKp7iI+rSbGztH/h8XWBzbSgiZId3ld8HQmtgP+ha2 gdw+9VgF69aHsmyU4u5iHLCejQiVTKJcRUPdLUzftNEGhuqi5PC+PjGIxISOlqms3HfA iT/npbmqbkukDOjldSH8oByIay+UEeeXqP18Dd64YXTM5hzNqAjkwuVBZHq0RGyHEFQf Z3xqZupxhUnI+dn4HHdD0nt974nX9WmNDII00QfEaGSEOOhdCeLXUHL+JNpxKY4pLpvM 3gjAtkmIywK+7w64stkalx35fBH4hNHx0i2p9VZBxAvaU/bydF7sZYESpEqMeNViMNPn HB5Q== 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:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=qZIrH+eY0e0tcR8XksPdHo6P5CyqL2CBK1XOA35lQMI=; b=PKgeTlXwZwjpkKWwp8etbwavkOkOqvrFK5KKdzX938E+FjncZEXDjDRztyKT2l01ej 3KY1kHIznV0fCTL+DivvJ/YN93q3VObntIMUGuTegoejV2KJZQjfuhCNPGdHmaDeBF51 bm1k7pErm3qgGCG3a/B0orD1YEt/fvPjQZSJudo9P4XbxRh1QEXk0KHimx+sZBsqm2LV y1CUC5J+/vjBUD49fCxRXWhctyGxhuFY4jcZhM6DIUJlKKnQ0q4vwcYnfCYDC6w1W4aD KO6eyLbXUm4TsCkBBcYNSvZ6eRo0x7pzBA1pz0ZJDnP84QjL6MmwJmTWZlN/PpoiZz5N YC1A== X-Gm-Message-State: AOAM530ZIBO9SbKTuKCCnBXhrC/mroZkrG6QR0y+dQHdjMD2Z88ZN3Sd 21nLZn8iftwr6usIFiEQU7VKv3ky/y0= X-Google-Smtp-Source: ABdhPJwBJEArpTVraBujiSIo7jjofhAmUH2H8kRsWZNAFjavW9w48IgMpKSLFP3w2K+EOWktssIjjw== X-Received: by 2002:a1c:6689:: with SMTP id a131mr16328196wmc.33.1608553283355; Mon, 21 Dec 2020 04:21:23 -0800 (PST) Received: from lili (oul69-1-82-232-2-3.fbx.proxad.net. [82.232.2.3]) by smtp.gmail.com with ESMTPSA id k128sm13021165wma.43.2020.12.21.04.21.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 04:21:22 -0800 (PST) From: zimoun To: Phil Subject: Re: guix pull only from private channel In-Reply-To: <85bleqx9mo.fsf@beadling.co.uk> References: <85czzbx878.fsf@beadling.co.uk> <85bleqx9mo.fsf@beadling.co.uk> Date: Mon, 21 Dec 2020 13:16:10 +0100 Message-ID: <86wnxb9wxh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=oYPMB89r; dmarc=pass (policy=none) header.from=gmail.com; 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: 12FB29404E5 X-Spam-Score: -3.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: 02itVg+qWI8u Hi, On Sat, 19 Dec 2020 at 12:28, Phil wrote: > The bit I was missing was how do I create a channels file that keeps > 'guix' at a constant commit - the scheme snippet you sent me is perfect, = and > gave me a good way-in to the API - thanks! Do not take the snippet as bullet-proof. It is a quick example to illustrate the Guix power. ;-) > One question - what's the reasoning about making all channel files have > a guix channel? Obviously it makes sense that there must be a guix > channel referenced somewhere - but my expectation was (wrongly) that if > I created a channel file with only my private channel in it, it would > simply ignore guix and pull only what my private channel offered. Instea= d it > complains that there is no guix channel defined. You mean that: --8<---------------cut here---------------start------------->8--- $ cat /tmp/one-channel.scm (list (channel (name 'past) (url "https://gitlab.inria.fr/guix-hpc/guix-past.git"))) $ guix pull -C /tmp/one-channel.scm -p /tmp/one Updating channel 'past' from Git repository at 'https://gitlab.inria.fr/gui= x-hpc/guix-past.git'... guix pull: warning: pulled channel 'past' from a mirror of https://gitlab.i= nria.fr/guix-hpc/guix-past, which might be stale Building from this channel: past https://gitlab.inria.fr/guix-hpc/guix-past.git 829923f /tmp/one-channel.scm:2:1: error: 'guix' channel is lacking hint: Make sure your list of channels contains one channel named `guix' pro= viding the core of Guix. --8<---------------cut here---------------end--------------->8--- Well, somehow you need one channel that provides the command =E2=80=9Cguix= =E2=80=9D. It is possible to cheat with a local clone and set url to =E2=80=9Cfile:///pat= h/to/clone=E2=80=9D. > I'm guessing it wants to weigh-up guix vs my private channel to pick the > latest version of a package from either, but that doesn't make sense to > me if I know that my private channel contains packages which are always > mutually exclusive from the guix channel? 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--- Hope that helps, simon