help-guix
[Top][All Lists]
Advanced

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

pulling from my personal channel only - is this possible ?


From: Andreas Reuleaux
Subject: pulling from my personal channel only - is this possible ?
Date: Wed, 01 Sep 2021 16:59:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi,

for developing some personal packages, I have set up a personal channel
( http://git.a-rx.info/channel, resp: git://git.a-rx.info/channel ).

And I have asked about doing so here before: this is working fine for me
now.

While working on those packages, I often do a

--8<---------------cut here---------------start------------->8---
guix pull
--8<---------------cut here---------------end--------------->8---

and with my the accompanying:

~/.config/guix/channels.scm (as currently):
--8<---------------cut here---------------start------------->8---
(cons (channel
       (name 'my-stuff)
       (url "git://git.a-rx.info/channel")
       (introduction
        (make-channel-introduction
         "c1c4385a9f4e5a10ce294194ba687c58e5a785ec"
         (openpgp-fingerprint
          "99BB E77D 73AE 07B9 D4B0  CA2E 3384 11E5 6E09 31B5")
         ))
       )
      %default-channels
      )
--8<---------------cut here---------------end--------------->8---

I get the latest packages, both:

* from the guix core (via %default-channels),
* and from my own packges (url as above)

This takes roughly 53s for me:

--8<---------------cut here---------------start------------->8---
rx@dell ~$ time guix pull
Updating channel 'my-stuff' from Git repository at 
'git://git.a-rx.info/channel'...
Updating channel 'guix' from Git repository at 
'https://git.savannah.gnu.org/git/guix.git'...
Building from these channels:
  guix      https://git.savannah.gnu.org/git/guix.git   c75b30d
  my-stuff  git://git.a-rx.info/channel c1c4385
Computing Guix derivation for 'x86_64-linux'... -
nothing to be done


real    0m52.708s
user    1m7.016s
sys     0m0.584s
rx@dell ~$
--8<---------------cut here---------------end--------------->8---

It is nice to have up to date guix packages, but annoying nevertheless,
when developing my own package (making changes on my channel) - and it
would be enough for me to get new guix core packages only once per day,
say.

Thus I try to pull from my own channel only, with no success however:



--8<---------------cut here---------------start------------->8---
rx@dell ~$ guix pull --url="git://git.a-rx.info/channel"
Updating channel 'guix' from Git repository at 'git://git.a-rx.info/channel'...
guix pull: error: aborting update of channel 'guix' to commit 
c1c4385a9f4e5a10ce294194ba687c58e5a785ec, which is not a descendant of 
c75b30d58f0becb0a5cd6a8bfe69d1063b0d1ada
hint: This could indicate that the channel has been tampered with and is trying 
to force a roll-back, preventing you from getting the
latest updates.  If you think this is not the case, explicitly allow 
non-forward updates.
--8<---------------cut here---------------end--------------->8---


--8<---------------cut here---------------start------------->8---
rx@dell ~$ guix pull --url="git://git.a-rx.info/channel" --allow-downgrades
Updating channel 'guix' from Git repository at 'git://git.a-rx.info/channel'...
guix pull: warning: moving channel 'guix' from 
c75b30d58f0becb0a5cd6a8bfe69d1063b0d1ada to unrelated commit 
c1c4385a9f4e5a10ce294194ba687c58e5a785ec
guix pull: error: Git error: object not found - no match for id 
(9edb3f66fd807b096b48283debdcddccfea34bad)
--8<---------------cut here---------------end--------------->8---


When I try to comment out the %default-channels, i.e.
change my channels.scm to:

--8<---------------cut here---------------start------------->8---
(cons (channel
       (name 'my-stuff)


       (url "git://git.a-rx.info/channel")

       (introduction
        (make-channel-introduction
         "..."
         (openpgp-fingerprint
          "...")
         ))

       )
      ;; %default-channels
      '()
  )
--8<---------------cut here---------------end--------------->8---

then I get:

--8<---------------cut here---------------start------------->8---
rx@dell ~$ guix pull
Updating channel 'my-stuff' from Git repository at 
'git://git.a-rx.info/channel'...
Building from this channel:
  my-stuff  git://git.a-rx.info/channel c1c4385
/home/rx/.config/guix/channels.scm:3:6: error: 'guix' channel is lacking
hint: Make sure your list of channels contains one channel named `guix' 
providing the core of Guix.
--8<---------------cut here---------------end--------------->8---





Is there a way to pull from my own channel only (and otherwise use the
packages from guix core as pulled last time (as pulled in the morning
say, when pulling once per day)?


Is there an issue with my http/git urls maybe ? - I can git clone my channel 
with a http url as well:

--8<---------------cut here---------------start------------->8---
rx@softland ~/tmp $ git clone http://git.a-rx.info/channel/
Cloning into 'channel'...
rx@softland ~/tmp $
--8<---------------cut here---------------end--------------->8---


but I cannot use that http git url for pulling in my channels file:

--8<---------------cut here---------------start------------->8---
(cons (channel
       (name 'my-stuff)

       ;; (url "git://git.a-rx.info/channel")
       (url "http://git.a-rx.info/channel/";)

       (introduction
        (make-channel-introduction
         "c1c4385a9f4e5a10ce294194ba687c58e5a785ec"
         (openpgp-fingerprint
          "99BB E77D 73AE 07B9 D4B0  CA2E 3384 11E5 6E09 31B5")
         ))

       )
      %default-channels
      )
--8<---------------cut here---------------end--------------->8---

Then I get:

--8<---------------cut here---------------start------------->8---
rx@dell ~$ guix pull
Updating channel 'my-stuff' from Git repository at 
'http://git.a-rx.info/channel/'...
guix pull: error: Git error: invalid content-type: 'text/plain; charset=UTF-8'
rx@dell ~$
--8<---------------cut here---------------end--------------->8---



Thanks in advance.
  -A
  



reply via email to

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