From: Xinglu Chen <public@yoctocell.xyz>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 50426-done@debbugs.gnu.org
Subject: [bug#50426] [PATCH] import: elpa: Don't hardcode default branch to 'master'.
Date: Fri, 10 Sep 2021 19:56:27 +0200 [thread overview]
Message-ID: <87czpgxqk4.fsf@yoctocell.xyz> (raw)
In-Reply-To: <87bl50cuxr.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]
On Fri, Sep 10 2021, Ludovic Courtès wrote:
> Hi,
>
> Xinglu Chen <public@yoctocell.xyz> skribis:
>
>> Otherwise, remotes without a branch named 'master' will cause an error when
>> importing.
>>
>> * guix/import/elpa (git-repository->origin): Fallback to HEAD instead of the
>> 'master' branch.
>
> Applied, thanks!
>
>> For example, try to import the ‘consult’ package from MELPA:
>>
>> $ ./pre-inst-env guix import elpa -a melpa consult
>
> This example works for me:
>
> --8<---------------cut here---------------start------------->8---
> $ guix describe
> Generacio 189 Aug 30 2021 12:09:27 (nuna)
> guix f91ae94
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: f91ae9425bb385b60396a544afe27933896b8fa3
> ludo@ribbon ~/src/guix$ guix import elpa -a melpa consult
>
> Starting download of /tmp/guix-file.E3Bp9a
> From https://melpa.org/packages/consult-20210905.1657.tar...
> …0905.1657.tar 240KiB 501KiB/s 00:00 [##################] 100.0%
> (package
> (name "emacs-consult")
> (version "20210905.1657")
> (source
> (origin
> (method url-fetch)
> (uri (string-append
> "https://melpa.org/packages/consult-"
> version
> ".tar"))
> (sha256
> (base32
> "0d29fd0r6bsn3ivqzjdlj7yhafbs84x3p4v7885nc14fgmbl5a7k"))))
> […]
> --8<---------------cut here---------------end--------------->8---
>
> But maybe something changed on MELPA in the meantime?
Ah, I think you are running into #49006[1], which uses the MELPA URL
instead of the Git repo.
[1]: <https://issues.guix.gnu.org/49006>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
prev parent reply other threads:[~2021-09-10 17:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-06 10:57 [bug#50426] [PATCH] import: elpa: Don't hardcode default branch to 'master' Xinglu Chen
2021-09-10 15:27 ` bug#50426: " Ludovic Courtès
2021-09-10 17:56 ` Xinglu Chen [this message]
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=87czpgxqk4.fsf@yoctocell.xyz \
--to=public@yoctocell.xyz \
--cc=50426-done@debbugs.gnu.org \
--cc=ludo@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 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).