From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EKtlKo58VmMtFwAAbAwnHQ (envelope-from ) for ; Mon, 24 Oct 2022 13:52:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GExEKo58VmNXqgAAauVa8A (envelope-from ) for ; Mon, 24 Oct 2022 13:52:46 +0200 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 76162CEAB for ; Mon, 24 Oct 2022 13:52:46 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omvs7-0000OO-B3; Mon, 24 Oct 2022 07:43:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omvs5-0000Nf-MU for guix-devel@gnu.org; Mon, 24 Oct 2022 07:43:58 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omvs2-00058t-TL for guix-devel@gnu.org; Mon, 24 Oct 2022 07:43:57 -0400 Received: (Authenticated sender: tanguy@bioneland.org) by mail.gandi.net (Postfix) with ESMTPSA id 62FC71C000B; Mon, 24 Oct 2022 11:43:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bioneland.org; s=gm1; t=1666611832; h=from:from: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; bh=0x1Wu+/Y2fhrQMXNQTtEKG9teAv8PS45cmBGJ45glJE=; b=a+ROVRAk5AdMmCpBtl0mSJSnFu48C69tmoUPMydmQJKQrrXeQ6+5OuuKrij6fJ0hh0eGYx RFftMWxz91VX/eFoIdt4FzM30W2tgQiMgqz35rqgFzMS+7gHo7LkT4L1OxmnB+50sOTnW8 fo6fgwFkrCClc0Bnh0vHvs37d6s7cBC4NQSD06SgzeGYRic5Q1qOKRY0ifXznuT4WCrMMB 90cbONQJA8SqEnU/QoED9+/HzEqzTBA7AlDIM338PY2HZhMMqRFlbBUY5cV6ZhdyLBMHqw le4IT4rqEfeN9qTvx+T8ET0mcvPMCu7KJ1InyPNeaqv6gqf2mB5Lx937xwFcpw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <87a66wfzeh.fsf@cbaines.net> <166497850086.2821.11724664487538606446@localhost> <166610995881.29629.5985110023514931507@localhost> <86edv4p24k.fsf@gmail.com> <166653965392.19847.3217461018929572554@localhost> <87wn8pisjy.fsf@gmail.com> Subject: Re: Notes from discussion on Quality Assurance from the 10 Years of Guix event From: Tanguy LE CARROUR Cc: guix-devel@gnu.org To: Christopher Baines , zimoun In-Reply-To: <87wn8pisjy.fsf@gmail.com> Date: Mon, 24 Oct 2022 13:43:50 +0200 Message-ID: <166661183085.16281.6483971854463851981@localhost> User-Agent: alot/0.10 Received-SPF: pass client-ip=217.70.183.197; envelope-from=tanguy@bioneland.org; helo=relay5-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-devel" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666612366; 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=0x1Wu+/Y2fhrQMXNQTtEKG9teAv8PS45cmBGJ45glJE=; b=tnDqQHg/3kBzE0wXaPLfYvUjAD9C4KuHDCS8010uf1LvvnOEo+wv2IpDDW1ku0vxzPvei1 FrPKwruvzEYwWYut/Q+lXqteF1pFp1Q5M9GVGVyKur38ZLwe999BdRafDjFKviY5dudDCk 6kK6t6ISUfKg9M/wMKAtPGbCiTKaJhAzWBvVeHfUoSxVlPi75/Ndg3Q2tDVIT1QX9YTNdm zgkfKH+8NE95lkNNesXjsAR1xGYalkdfPbQHVau1wfemRVy5rnIdGDUDNNX87lPn2e5ziU RV1uNov8NmizIdQPeX3bgcHUg1CQPTX1H6Uy8Mgx+s4hfvRQX7wigjlhS9+ipA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666612366; a=rsa-sha256; cv=none; b=cCLErkXr9vEMOEe7GLOeo4sG13bPZrasIAsezCqd6r9T5UeZ010KHF2T6+s+1LLmhqPeMh EdhEQIUidBV/eNmbjecZ9j/w8wsEqY/j6RoxyHKT9mSxtBgMZPmBCkCxx+v+MpWzML2sQa kxRFGC7jP7iXKkJn7bI91u3HwYiddONTmulomu0oSqgka60euQunjlFOnh6rAMses4rxq2 2+niesMZW9o7BWW9M8o6OqYmWN/xjQ2uFWm191KcDSyzEs/e8SthTaIavGjV1zVomYGypQ YBa1RnYXXaiF3vQExYPxMIqcPlcuKuaBNGS8KjG+M3n3kpGZa5YDAScyZSA2GA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=gm1 header.b=a+ROVRAk; dmarc=pass (policy=none) header.from=bioneland.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bioneland.org header.s=gm1 header.b=a+ROVRAk; dmarc=pass (policy=none) header.from=bioneland.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 76162CEAB X-Spam-Score: -2.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: NsIkDCXfE+Ic Hi Simon, Quoting zimoun (2022-10-24 09:34:09) > On dim., 23 oct. 2022 at 17:40, Tanguy LE CARROUR = wrote: >=20 > >> guix package --export-manifest > /tmp/my-pkgs.scm > >> guix refresh -m /tmp/my-pkgs.scm 2>&1 | ... > > > > I'm not using manifest (anymore). I used to, but for the time being, I'= m using > > `divenv` + `guix shell` and I'm quite happy with that setup. >=20 > Note that the first command above creates the manifest for you. > Usually, it works well enough. :-) I guess the "problem" is that I'm a "pipe person". I just don't like having to create a temp=E2=80=99 file. But I agree that your solution is more elegant. > Well, =E2=80=99direnv=E2=80=99 + =E2=80=99guix shell=E2=80=99 but you hav= e a manifest, no? I mean how > does =E2=80=99guix shell=E2=80=99 know what to provide inside this new sh= ell? I used to have a `manifest.scm` file. I even used to (silly me!) commit it into the repository along side the project's code. I recently realized that it was easier to only have a git-ignored `.envrc` file containing: ``` use guix-shell python python-wrapper python-jedi poetry [=E2=80=A6] ``` The other project's dependencies are (still) managed by Poetry, so the list passed to Guix shell is quite short. Not that `guix-shell` is a custom function, for Direnv `guix` function still uses `guix environment`. But this would also work: ``` use guix --ad-hoc python python-wrapper python-jedi poetry [=E2=80=A6] ``` For some projects that are not dev project, I sometimes use a `manifest.scm`. I guess it also depends on the Moon phase. In those rare cases, my `.envrc` contains the following: ``` use guix-shell -m manifest.scm ``` Which can be abbreviated to `use guix-shell`, because it auto-magically loads the `manifest.scm` or `guix.scm` file present inside the folder. Regarding the `guix.scm` file, I recently decided to also move them out of the code repository of the (personal) projects I needed to package for Guix, because they don't actually belong with the code. They now live in a dedicated repository that I added to my Guix channels. > For what it is worth, I have used similar workflow but I have been bored > to run =E2=80=9Cguix pull=E2=80=9D, do some stuff unrelated to =E2=80=99p= roject=E2=80=99, then later be > back on =E2=80=99project=E2=80=99 and then have failures. Instead, my wo= rkflow is > splited into 2 ways depending on my phase of the Moon. Either, I create > a profile inside the project directory. Either, I use channels.scm + > manifest.scm and often run via =E2=80=99guixify=E2=80=99 script (see belo= w); e.g., >=20 > guixify foo # run foo using the Guix environment > guixify # enter in the environment Thanks for sharing! I used to have the same kind of setup, but=E2=80=A6 > Maybe, =E2=80=99direnv=E2=80=99 would do a better job. I wrote a `profile` function for Direnv that was doing the job of loading the environment. ``` use profile the-profile-for-my-project ``` I also had a `guix-all-profile` command that would executing the same comma= nd on all my profiles. Basically looping over them to `--upgrade` or `--delete= -generations`. But I found it easier to use Guix shell. > The good point is that channels.scm and manifest.scm are included in the = Git > tree of the project. And they can be re-used with =E2=80=99guix pack -f d= ocker -m > manifest.scm=E2=80=99 to generate Docker pack that I can share with colle= agues. My colleagues use Debian. We agreed that I would not pollute the repo with my Guix files if they would not commit their Debian support files. =F0= =9F=98=85 Regards, --=20 Tanguy