From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: guix pull avoidance Date: Mon, 22 Aug 2016 14:01:17 -0400 Message-ID: <20160822180117.GA17367@jasmine> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbtXY-0000XG-I2 for help-guix@gnu.org; Mon, 22 Aug 2016 14:01:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbtXT-0002IN-A8 for help-guix@gnu.org; Mon, 22 Aug 2016 14:01:39 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbtXR-0002GL-Ru for help-guix@gnu.org; Mon, 22 Aug 2016 14:01:35 -0400 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Vincent Legoll Cc: help-guix On Mon, Aug 22, 2016 at 04:34:41PM +0200, Vincent Legoll wrote: > Hello, > > when one does guix pull, it is done only for that user, another one > doing it subsequently (or at the same time) is going to download > and compile the whole (identical) thing again, is it possible to switch > a user to a previously dl'ed revision, like just changing a symlink in > ~/.guix-profile to point to /gnu/store/*-guix-latest, or something like > that ? The 2nd user who does `guix pull` will not recompile if nothing has changed. You can change which Guix you use by changing what the symlink at '~/.config/guix/latest' points to. The next time you do `guix pull`, this symlink will be rewritten to point at the result of the `guix pull`. That is, it will point to the Guix built from the latest HEAD of our master branch. > I have seen suggestions about using git as a backend for guix pull, > but until that happen is there an easy way to get the same thing done ? A lot of us keep a copy of Guix's Git repository, and we use the Guix we build from that when we need something besides the latest HEAD of the master branch. See manual sections 8.1 Building from Git and 8.2 Running Guix Before It Is Installed for information on how to use Guix from a Git checkout. Some of us go even farther, and make '~/.config/guix/latest' point to the Guix we build from Git.