From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oFDgBoH3L2F5fAEAgWs5BA (envelope-from ) for ; Wed, 01 Sep 2021 23:58:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0FZPAoH3L2F6PAAAB5/wlQ (envelope-from ) for ; Wed, 01 Sep 2021 21:58:25 +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 D6002174CC for ; Wed, 1 Sep 2021 23:58:23 +0200 (CEST) Received: from localhost ([::1]:44034 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLYFR-00025B-Dr for larch@yhetil.org; Wed, 01 Sep 2021 17:58:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLYF9-00024w-LN for help-guix@gnu.org; Wed, 01 Sep 2021 17:58:03 -0400 Received: from mx1.riseup.net ([198.252.153.129]:36750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLYEy-00028s-2i for help-guix@gnu.org; Wed, 01 Sep 2021 17:58:03 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4H0Hwt5Bn3zDvgR; Wed, 1 Sep 2021 14:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1630533470; bh=jyony16ntcFNjoXCTio02FBzKTT8Djdg4PEefZ/dIfg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OgG9PQAeDqsfEVxTZiowAGDSjjyYJ0+jFvIC8mJ6hy1CkCzNMPTpMq+E6uiqSKVUZ HpR+GDsvwOm+eOi2XKkktj8M7gGk5ayCP5HjNEWAWhUdlPPTId4TaBdfGJneToz3cX Vt+euLJ1fJtaNhVQICMdcUS2Pg3vq4pAonJ23+1g= X-Riseup-User-ID: 0C0997FB714AB0FCB9236AA654B889D309D0031BBD297BAEFDF6A29E6D0A4F75 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4H0Hws5HNpz5vVf; Wed, 1 Sep 2021 14:57:49 -0700 (PDT) Date: Wed, 1 Sep 2021 23:57:46 +0200 From: raingloom To: Andreas Reuleaux Subject: Re: pulling from my personal channel only - is this possible ? Message-ID: <20210901235746.5f651b7d@amethyst> In-Reply-To: <87fsuot70w.fsf@softland> References: <87ilzk2sna.fsf@softland> <20210901185358.3445d42c@amethyst> <87fsuot70w.fsf@softland> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.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, SPF_HELO_PASS=-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630533504; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=f55j1oVGAx1BISiPw8VPvIGrBpexBTR2eXBMOLRLKak=; b=OnEke94R1kA2eFQVp6+i5CsqO/JQ0obKtIC1RK1z5WIo4eSORDJoaG2Z9DqIZ6pOWVmbi8 1dzb6FJoy5Ksqfyih2Sq44D6mUwdVIcFTolZVyJxogjfPGPEkqnQzu/qgK+Gp+IHqbToky 3QePLZ++ww4lXo16t6L8t6mNuRFby2sSvaVnlAehoymmID0q6eZbQu0Q9V6sX+2vLjFuK0 YSv3ATb6RiZOQNrYjEFwem26BHPPdh9tqAPMCbQiH6ExTY67mSlSRfmp5pqFuvXcKV+2nx IaF04j7aTEj9l06FMAgtpVFJ3tB73NIsp1g2HuvbOw1A2aikZhsG3byH2/v3Wg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630533504; a=rsa-sha256; cv=none; b=Ka6bg2FjskTZ7qkag4K5/lq1YfAzw9t15IBaazwQPAcJ9Ubg7a4H0ZfT6nlU6RTekluiw7 jUkjQwlZ71MfhswUliT5awCFwN0tZxHWA/kGwmY3fWO6EfzSCLgsRJnZ/G8YgKb5MX9eLa yrRfaQdTIvEZuuoTgQTvB4oVlQDYWyKZ1LLnUPmyI0fewOlbM5VhM4ai6W3uC9yzQi1mLy 90AtIiRmzCP0leWtHvJvqRQdF3L+2Yjv7gun5Au9CaKPKI+ragajeV4UO81i+4wdrqsPjD 82tFOD/siWHrh5KVw8TsHJnAjHycRCQI1EbvZ+Fs2YoRNZsBFTAnQ0WJ9krf8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=OgG9PQAe; dmarc=pass (policy=none) header.from=riseup.net; 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: -0.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=OgG9PQAe; dmarc=pass (policy=none) header.from=riseup.net; 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: D6002174CC X-Spam-Score: -0.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: IfvHJ3Nl8TQ9 On Wed, 01 Sep 2021 20:44:47 +0100 Andreas Reuleaux wrote: > raingloom writes: > > > None that I'm aware of, but you don't need to push/pull to test > > anything. Just use the --load-path argument or the GUILE_LOAD_PATH > > environment variable. That way you can use a local checkout. > > > > Well, OK, thanks: > > I am experimenting, and apparently all three: guix pull, guix > package, guix build accept a --load-path parameter: > > * If I call guix pull with --load-path... it still takes ~ 53s, > and I wanted to do that only once per day, say -- ruling out this > possibility > > * Thus I am trying to use a --load-path w/ guix package -i, > or guix package -u (instead of using my personal channel) > but with not too much success yet, cf. below I don't think --load-path makes much sense for guix pull. Pretty sure that would only make sense if you were modifying the guix or gnu namespaces, or in other words, Guix itself. > * maybe I should use --load-path w/ guix build instead ? > not sure, if this make sense in my case. It does, that is how you should be building packages. Either with --load-path or loading an expression from a file. > Setting the stage now: with my personal channel set up, I can > install a few haskell packages (not found in guix core yet): > as specified in my manifest file: > --8<---------------cut here---------------start------------->8--- > guix package -m ~/cfg/stuff/manifest-hs.scm > --8<---------------cut here---------------end--------------->8--- > > with manifest-hs.scm: > --8<---------------cut here---------------start------------->8--- > (specifications->manifest > (list > > ;; "cabal-install" > > "ghc" > > ;; [channel] > "ghc-filepattern" > > ;; [channel] > "ghc-formatting" > > ;; [channel] > "ghc-heaps" > > ;; [channel] > "ghc-js-dgtable" > > ;; [channel] > "ghc-map-syntax" > > ;; [channel] > "ghc-quickcheck-text" > > ;; [channel] > ;; "ghc-shake" > > ;; [channel] > "ghc-string-interpolate" > > )) > --8<---------------cut here---------------end--------------->8--- > > [channel] comments therein indicate, that these packages are from my > channel (just as a reminder for me), for example "ghc-formatting" is > from my channel, whereas "ghc" is from guix core. -- "ghc-shake" used > to work for me before, but now has issues - unrelated to my question > though, thus commented out for now (and a good candidate maybe for > building with guix build -f ghc-shake.scm). > > > Those packages I get installed just fine > (and note in particular, that ghc-formatting is at v7.1.3 - > we will change that below): > > --8<---------------cut here---------------start------------->8--- > rx@dell ~$ guix package -I > ghc-string-interpolate 0.3.1.1.849b579 out > /gnu/store/g8rw5ppn3sdfayzfgrdq79xy3b0jkz58-ghc-string-interpolate-0.3.1.1.849b579 > ghc-quickcheck-text 0.3.1.1.849b579 out > /gnu/store/60wnvhmf4vjm23d85nxga4mxh2v5xhly-ghc-quickcheck-text-0.3.1.1.849b579 > ghc-map-syntax 0.3.02d857z out > /gnu/store/m3bawbfw6pqd9rrn6pwydi689dwbpjzc-ghc-map-syntax-0.3.02d857z > ghc-js-dgtable 0.4-849b579 out > /gnu/store/3g3nr1b0jl8syw52vq3dzqd0zfrq85m8-ghc-js-dgtable-0.4-849b579 > ghc-heaps 0.4-849b579 out > /gnu/store/hp5d0dakjh17j92q7n1z656jhc3wbjhb-ghc-heaps-0.4-849b579 > ghc-formatting v7.1.3.849b579 out > /gnu/store/znblyzx2ki9fjx3a61m247ksgx6lc4vf-ghc-formatting-v7.1.3.849b579 > ghc-filepattern 0.1.2-849b579 out > /gnu/store/jg1qyss1mms7iamplxkrbyicvc08n462-ghc-filepattern-0.1.2-849b579 > ghc 8.8.4 out > /gnu/store/0284m9ddms3w10zh1shgkimnjbidzy5j-ghc-8.8.4 git > 2.33.0 out > /gnu/store/g69aj4572bllw73phbpxqbpgqb7s3zyl-git-2.33.0 rx@dell ~$ > --8<---------------cut here---------------end--------------->8--- > > > > Now I remove my .config/guix/channels.scm: > > --8<---------------cut here---------------start------------->8--- > rx@dell ~$ rm ~/.config/guix/channels.scm > --8<---------------cut here---------------end--------------->8--- > > pull again (just guix core this time): > > --8<---------------cut here---------------start------------->8--- > rx@dell ~$ guix pull > Updating channel 'guix' from Git repository at > 'https://git.savannah.gnu.org/git/guix.git'... Building from this > channel: guix https://git.savannah.gnu.org/git/guix.git > c75b30d Computing Guix derivation for 'x86_64-linux'... - > --8<---------------cut here---------------end--------------->8--- > > and remove my packages: > > --8<---------------cut here---------------start------------->8--- > rx@dell ~$ guix package -r ghc-string-interpolate ghc-quickcheck-text > ghc-map-syntax ghc-js-dgtable ghc-heaps ghc-formatting > ghc-filepattern The following packages will be removed: > ghc-filepattern 0.1.2-849b579 ghc-formatting > v7.1.3.849b579 ghc-heaps 0.4-849b579 > ghc-js-dgtable 0.4-849b579 > ghc-map-syntax 0.3.02d857z > ghc-quickcheck-text 0.3.1.1.849b579 > ghc-string-interpolate 0.3.1.1.849b579 > > hint: Consider setting the necessary environment variables by running: > > GUIX_PROFILE="/home/rx/.guix-profile" > . "$GUIX_PROFILE/etc/profile" > > Alternately, see `guix package --search-paths -p > "/home/rx/.guix-profile"'. > > rx@dell ~$ guix package -I > ghc 8.8.4 out > /gnu/store/0284m9ddms3w10zh1shgkimnjbidzy5j-ghc-8.8.4 git > 2.33.0 out > /gnu/store/g69aj4572bllw73phbpxqbpgqb7s3zyl-git-2.33.0 rx@dell ~$ > --8<---------------cut here---------------end--------------->8--- > > > > Now having my packages locally (as from a git clone for example - I am > developing them on another (debian) machine really - thus git comes in > handy to get them on my guix machine dell as well): > > --8<---------------cut here---------------start------------->8--- > rx@dell ~/tmp$ git clone http://git.a-rx.info/channel/ > Cloning into 'channel'... > --8<---------------cut here---------------end--------------->8--- > > > Now I try to install them w/ --load-path: > > --8<---------------cut here---------------start------------->8--- > rx@dell ~$ guix package --load-path="/tmp/rx/channel" -m > ~/cfg/stuff/manifest-hs.scm guix package: error: ghc-filepattern: > unknown package guix package: error: failed to load > '/home/rx/cfg/stuff/manifest-hs.scm': gnu/packages.scm:543:4: In > procedure specification->package+output: Throw to key `quit' with > args `(1)'. rx@dell ~$ > --8<---------------cut here---------------end--------------->8--- > > > Not too convincing :-( - You probably used the wrong path. I've made that mistake before. Testing it on one of my Guix systems: ``` root@blue ~# cd /tmp root@blue /tmp# git clone http://git.a-rx.info/channel/ Cloning into 'channel'... root@blue /tmp# guix package --load-path="/tmp/channel" --show=ghc-filepattern name: ghc-filepattern ```