help-guix
[Top][All Lists]
Advanced

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

Re: cannot pull from local copy of Guix repository


From: Luis Felipe
Subject: Re: cannot pull from local copy of Guix repository
Date: Thu, 27 Feb 2025 15:28:27 +0000
User-agent: Icedove Daily

Hello everyone,

On 26/02/25 10:12, 45mg wrote:
Adam <adam.quandour@gmail.com> writes:

Hi Felix,
here are the commands
```
cd ~/Downloads/
git clone https://git.savannah.gnu.org/git/guix.git
```
After that I wrote ""file:///home/user/Downloads/guix" to my
~/.config/guix/channels.scm so it looks like this
```
(list (channel
         (name 'guix)
         ;; (url "https://git.savannah.gnu.org/git/guix.git";)
         (url "file:///home/user/Downloads/guix")
         (branch "master")
         (introduction
           (make-channel-introduction
             "9edb3f66fd807b096b48283debdcddccfea34bad"
             (openpgp-fingerprint
               "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))
```
No real idea what this is, but some things you could try:

- do `git log 9edb3f66fd807b096b48283debdcddccfea34bad` in your checkout
   and see if it finds the commit. If it doesn't then you may need to
   clone it again
- Try adding `/.git` to the end of the url. It would also probably work
   without the `file://` prefix (but that's probably not related)

HTH

I just tried pulling from a local copy of the Guix repository. I can confirm that it works as long as the local copy has the «keyring» branch available and the URL value in the channel definition omits the «file» scheme (as 45mg suggested).  Here's how I did it:

❶ Get a copy of the guix repository:

  cd ~/Downloads/
  git clone https://git.savannah.gnu.org/git/guix.git

❷ Enable the keyring branch (see channel authentication and authorization in Guix manual):

  cd guix
  git switch --track origin/keyring
  git switch master

❸ Pull from the local guix copy:

  guix pull -C local-guix-channel.scm

Where «local-guix-channel.scm» is a custom channels file to avoid modifying «~/.config/guix/channels.scm». The custom file contained the following:

(list
 (channel
  (name 'guix)
  (url "/home/user/Downloads/guix")
  (branch "master")
  (introduction
   (make-channel-introduction
    "9edb3f66fd807b096b48283debdcddccfea34bad"
    (openpgp-fingerprint
     "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))

In my case, trying to pull from a channel definition that used the «file://» scheme resulted in the guix pull command staying for a very long time (I waited ~10 minutes) in

  $ guix pull -C local-guix-channel.scm
  Actualizando el canal 'guix' del repositorio Git en '/home/$USER/Downloads/guix'...

And every minute that passed the command kept increasing the use of machine resources until the computer was very noisy and becoming unresponsive. The program  «top» showed the following numbers:

  Screenshot:

So I interrupted the process with Ctrl+C. I tried this three times with the same results.

Anyways, hope this helps.


Attachment: OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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