From: Andreas Reuleaux <rx@a-rx.info>
To: help-guix <help-guix@gnu.org>
Subject: pulling from my personal channel only - is this possible ?
Date: Wed, 01 Sep 2021 16:59:53 +0100 [thread overview]
Message-ID: <87ilzk2sna.fsf@softland> (raw)
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
next reply other threads:[~2021-09-01 16:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-01 15:59 Andreas Reuleaux [this message]
2021-09-01 16:53 ` pulling from my personal channel only - is this possible ? 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilzk2sna.fsf@softland \
--to=rx@a-rx.info \
--cc=help-guix@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.