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 vZSzJlU+a2FvFgEAgWs5BA (envelope-from ) for ; Sat, 16 Oct 2021 23:04:21 +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 OAzlIVU+a2EPMQAA1q6Kng (envelope-from ) for ; Sat, 16 Oct 2021 21:04:21 +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 D75B3321B7 for ; Sat, 16 Oct 2021 23:04:20 +0200 (CEST) Received: from localhost ([::1]:40882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbqqp-0001FB-Uf for larch@yhetil.org; Sat, 16 Oct 2021 17:04:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbqqf-0001F2-A9 for help-guix@gnu.org; Sat, 16 Oct 2021 17:04:09 -0400 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:37655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbqqd-0006r3-Dm for help-guix@gnu.org; Sat, 16 Oct 2021 17:04:09 -0400 Received: by mail-io1-xd35.google.com with SMTP id m20so11783728iol.4 for ; Sat, 16 Oct 2021 14:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beadling-co-uk.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=M1h2uK8ZUL788UsIhE5acgU0ol5OZhajZnxpD0OSN3k=; b=W42kQC2Gq1OD46yv6j38XdA2loB3zNCl1EY4rgqNpw4Lf6tYZuArao9eCvKXU3sUSh xWCuzwrhuI5dSkFh5y0c1Odec/ZxQQC/LfYZ4N0zGC9blcClxkB6irCVcdUnyewtCiJP DHAqfyzJyoCenuOTV8jM7fRgo604+H5GrVLrbzm1jS/qXFBzGCoJo1aYxn/LcrBuMn5j Znqxf68AQyqooFVhvpwnrmd7CgYz2dXl8thRRtuR0b6hlJkuoBEPuVeqGKiX5P1eWhEz 7I0uMQ0NBh2SOQuDLIHNE3wWIh5L3fazLmiu2m1VJmfOlCRIaobIljn1QRvtu3GuV9o1 Qn0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=M1h2uK8ZUL788UsIhE5acgU0ol5OZhajZnxpD0OSN3k=; b=rtcqA/PC00gyhhI1AbL4JeQVQLxYECeNp70TS4gpvRHirlqjZyUCp+OI0gYmpahOAm 2Ho54BD+4ea3jmwhpe10NNHW3r8WGPk390tpy6OEEGe399TXcx7kiY8ufDSkF0oNIC5r tqUmb/O3VnfwRpGqXXutAW4O66uYSX8CkpU9ZAjm9Vf93/a6lH57Oig2UqebaMXD8Wem nILuVE5rdCqx6Uy9jxEEWdNqvlXAYqsfJQ1BXo6sRozIWHDHL6b7zxWSN/mu3kUgVn6N Hk2D9garyArC/hXn6KDSCoOePsYq8OPh3pyaKHGoKtJXSzfgcoYnFcp6G2KVTzpmKY3K LU4Q== X-Gm-Message-State: AOAM532iHNBO0VxVxcxgVyaQ2xegCnRyQJMBvAUp7Mhahu1uE9A1u62O B9PDqVdvLfo/GecgXvD4f9lB/yGoMoY2/pSijmvTykZHmgD9OiPQfNQqUQ== X-Google-Smtp-Source: ABdhPJx9qckNyTE69aN6W6TiK/V3IiRvm+JceVQOexWbKylcHgpOKLZTj0H8xUMh0qj/xBkPRTdiidrH5cJfmGtg7lw= X-Received: by 2002:a05:6638:2403:: with SMTP id z3mr13218253jat.141.1634418245487; Sat, 16 Oct 2021 14:04:05 -0700 (PDT) MIME-Version: 1.0 References: <20211016084557.5quqd43ql4sckze4@localhost> In-Reply-To: <20211016084557.5quqd43ql4sckze4@localhost> From: Phil Beadling Date: Sat, 16 Oct 2021 22:03:54 +0100 Message-ID: Subject: Re: GUIX_PACKAGE_PATH doesn't have priority over official guix packages To: help-guix Received-SPF: none client-ip=2607:f8b0:4864:20::d35; envelope-from=phil@beadling.co.uk; helo=mail-io1-xd35.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, HTML_MESSAGE=0.001, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634418261; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=xhKcj5pZiKJ2rAKnDIFKIGAIZy1AcGtwm/fHNIDrNtM=; b=qJIOREQx39x4ooFszdV46Ntm+VlDJ0adckuwbnFlIbgkdHur9SJn2v5MMTtz3oBAqNQMhX 2h1KFW9DN/VsvD6gnPav1ZJuJ2Ng6qMmZi8FQ6Tzw1YDFsBJ6hdpqGkeJ59CO6oWPYd4it tfBco13RNPa7ZohgSXrc6khlvYA74su0GT1XGBnynhC9HZc2uVUIpzTK+MJ+3bktpy8JCC N618Ff0le0MunGDp+aoUAgJc8jqWLurjmOP949JXje6lnYLouN1V+DhoHHeqHftUJ4ljd0 Cm2RbPqFnfmCwSRgMogKhYQJ28LGOyXb/iiOHBr2khYFfGe1ikxXnP+4Cg2mnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634418261; a=rsa-sha256; cv=none; b=HDqA4vPp7ZyDgH78rPt0QcKxG9UkXbp7+4OPG366FDmgnkrKjzMwh6t+LaCNnpD1B6jMmK S1PxsJ8JjMlMbf2sn8bJDj2jZN1Qj/WM+zB+q5Qkc2flvgdyaimIDFeL3YradQ+3cqMLhp Z6nmwIHFRB7h2Aci+ZvPyoZVb/7NeEDqf5SvgUvSgis1yxu3MCPcAb+DOGF/wB/4ldF/sd lvBhncKpG0wslLdbpPGI71BhwiKtgIpN3EStjNvj6fX6O5ys81gx1I79Juiz5jlZvcVNbB 5g5qZfpBDpqpSl8idi8CFjTw6fJujYPnCAxqa3hnap+3bmStKWOg0eQmICbAyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=W42kQC2G; 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-Spam-Score: -1.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=beadling-co-uk.20210112.gappssmtp.com header.s=20210112 header.b=W42kQC2G; 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: D75B3321B7 X-Spam-Score: -1.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZcVxP+1jFx4L As far as I can see, Guix will always prefer the highest version number irrspective of which channel is sources it from. If you want another version you can use the '@' format as you have already worked out. Another way is to define the package is to keep the 'name' of the original, but the definition returns a different Scheme variable name. Using this method you can even have multiple packages all pointing to the same version of the source. This can then be specified in most Guix commands using the "-e" switch with a direct expression in Scheme like so: guix environment --ad-hoc python -e '(@@ (my-package my-module) python-pandas-special)' (define-public python-pandas-special (package (inherit python-pandas) (version "1.1.2") To avoid your command line getting overly complicated you can store your package requirements in a manifest which allows for similar specification. It can also be specified as a dependency in your own packages like this: ("python-pandas" ,python-pandas-special) HTH, Phil. On Sat, 16 Oct 2021 at 09:46, Tim Lee wrote: > I have my own channel in a Git repository on my local computer. > This is what I do to search and install packages from my own channel: > > $ cd /path/to/my-channel/ > $ GUIX_PACKAGE_PATH=. guix search 'mypackage' > $ GUIX_PACKAGE_PATH=. guix install 'mypackage' > > However, if there is a package with the same name in both my channel and > in the official guix channel, 'guix install' will install from the > official guix channel instead of my channel. Is this supposed to happen? > I thought that GUIX_PACKAGE_PATH is supposed to have priority over > the official guix channel? > > I am currently working around this problem by specifying the version > number when installing. For example: > > $ GUIX_PACKAGE_PATH=. guix install 'mypackage@1.2.3' > >