From: Efraim Flashner <efraim@flashner.co.il>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Akib Azmain Turja <akib@disroot.org>, guix-devel@gnu.org
Subject: Re: First guix pull is too costly
Date: Tue, 28 Jun 2022 15:28:26 +0300 [thread overview]
Message-ID: <Yrrz6pWksiEFVRPY@3900XT> (raw)
In-Reply-To: <86zghxdobv.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-06-28 12:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-28 8:04 First guix pull is too costly Akib Azmain Turja
2022-06-28 10:05 ` bokr
2022-06-28 11:23 ` zimoun
2022-06-28 12:28 ` Efraim Flashner [this message]
2022-06-28 16:59 ` zimoun
2022-07-01 12:51 ` Ludovic Courtès
2022-07-01 15:25 ` zimoun
2022-06-28 12:49 ` Akib Azmain Turja
2022-06-28 17:09 ` zimoun
2022-06-28 17:40 ` Akib Azmain Turja
2022-07-01 12:52 ` Ludovic Courtès
2022-07-07 9:01 ` Giovanni Biscuolo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yrrz6pWksiEFVRPY@3900XT \
--to=efraim@flashner.co.il \
--cc=akib@disroot.org \
--cc=guix-devel@gnu.org \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).