unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* pulling from my personal channel only - is this possible ?
@ 2021-09-01 15:59 Andreas Reuleaux
  2021-09-01 16:53 ` raingloom
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Andreas Reuleaux @ 2021-09-01 15:59 UTC (permalink / raw)
  To: help-guix

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
  


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-09-02 20:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-01 15:59 pulling from my personal channel only - is this possible ? Andreas Reuleaux
2021-09-01 16:53 ` raingloom
2021-09-01 19:44   ` Andreas Reuleaux
2021-09-01 21:57     ` raingloom
2021-09-01 22:16       ` Andreas Reuleaux
2021-09-01 21:16 ` Simon Streit
2021-09-01 21:43   ` Andreas Reuleaux
2021-09-01 23:26     ` Andreas Reuleaux
2021-09-02  8:33       ` Simon Streit
2021-09-01 22:15   ` Andreas Reuleaux
2021-09-02 11:29 ` zimoun
2021-09-02 11:43   ` Andreas Reuleaux
2021-09-02 20:06     ` zimoun

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).