guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First guix pull is too costly


From: Efraim Flashner
Subject: Re: First guix pull is too costly
Date: Tue, 28 Jun 2022 15:28:26 +0300

On Tue, Jun 28, 2022 at 01:23:00PM +0200, zimoun wrote:
> Hi,
> 
> On Tue, 28 Jun 2022 at 14:04, Akib Azmain Turja <akib@disroot.org> wrote:
> 
> > Is possible to reuse the guix channel from any other user to do the
> > first guix pull?  Or maybe a shallow clone?
> 
> Assuming alice is user already existing on the machine and bob is the
> new user.  Something like should do the job,
> 
> --8<---------------cut here---------------start------------->8---
> ALICE=/home/alice/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq
> BOB=/home/BOB/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq
> mkdir -p $BOB
> git clone $ALICE $BOB
> --8<---------------cut here---------------end--------------->8---
> 
> then adapt the permissions.
> 

There's already a copy of the guix source code at
/run/current-system/profile/share/guile/site/3.0/guix, what if we "just"
switched the new-user/new-cache experience to:

cp -r /run/current-system/profile/share/guile/site/3.0/guix/*
~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq
cd ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27shj7apsnalwq
git init
git remote add origin https://git.savannah.gnu.org/git/guix.git
git fetch
git branch --set-upstream-to=origin/master

OK, that actually doesn't work, I just tried it in a temp folder.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]