diff mbox series

[bug#71089] import/elpa: Add proper file-name to origin.

Message ID 20240521064654.30487-1-ngraves@ngraves.fr
State New
Headers show
Series [bug#71089] import/elpa: Add proper file-name to origin. | expand

Commit Message

Nicolas Graves May 21, 2024, 6:46 a.m. UTC
This avoids the lint "the source file name should contain the package
name" with generated packages.

Change-Id: I61c81203d9f3cdd035e2b64a4c7a8d86d1f3dd50
---
 guix/import/elpa.scm | 1 +
 1 file changed, 1 insertion(+)

Comments

Zheng Junjie May 22, 2024, 7:51 a.m. UTC | #1
Nicolas Graves via Guix-patches via <guix-patches@gnu.org> writes:

> This avoids the lint "the source file name should contain the package
> name" with generated packages.
>
> Change-Id: I61c81203d9f3cdd035e2b64a4c7a8d86d1f3dd50
> ---
>  guix/import/elpa.scm | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/guix/import/elpa.scm b/guix/import/elpa.scm
> index d1855b36986..46b6dc98a20 100644
> --- a/guix/import/elpa.scm
> +++ b/guix/import/elpa.scm
> @@ -250,6 +250,7 @@ (define ref
>         (uri (git-reference
>               (url ,url)
>               (commit ,commit)))
> +       (file-name (git-file-name name version))
>         (sha256
>          (base32
>           ,(bytevector->nix-base32-string

push, see https://git.savannah.gnu.org/cgit/guix.git/commit/?id=6bcecb6898d0e205a705f3cfb4a3140f45dd7034
diff mbox series

Patch

diff --git a/guix/import/elpa.scm b/guix/import/elpa.scm
index d1855b36986..46b6dc98a20 100644
--- a/guix/import/elpa.scm
+++ b/guix/import/elpa.scm
@@ -250,6 +250,7 @@  (define ref
        (uri (git-reference
              (url ,url)
              (commit ,commit)))
+       (file-name (git-file-name name version))
        (sha256
         (base32
          ,(bytevector->nix-base32-string