help-guix
[Top][All Lists]
Advanced

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

Re: How to use guix hash --serializer?


From: zimoun
Subject: Re: How to use guix hash --serializer?
Date: Tue, 4 Jan 2022 17:53:55 +0100

Hi,

On Tue, 4 Jan 2022 at 17:39, Mortimer Cladwell <mbcladwell@gmail.com> wrote:

>  (uri (git-reference
>                       (url "git://github.com/mbcladwell/shinyln.git")
>                       (commit "9f06568ffa61953ab48c93e1623d88b4e672af42")))
>                 (sha256 (base32
> "10nfjllq28jrzxd4dfqm6xzx8f2g1m6p2vivzihxc7d3ac1imnk2"))

> $guix hash -rx .
> 1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj

That's because you are inside the folder.  Go outside

    $ guix hash -rx shinyln
   10nfjllq28jrzxd4dfqm6xzx8f2g1m6p2vivzihxc7d3ac1imnk2

where shinyln is whatever the name of the folder where the Git repo is.

> $guix hash --serializer=git -x .
> 0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x

Here, you are using the Git serializer when Guix uses the Nar one.
The correct is:

    guix hash -S nar -x shinyln


> Appears that the -x switch has no effect.

Indeed,

    $ guix hash -S git foo -x
    0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal
    $ guix hash -S git foo
    0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal

Hum, I will check if it is expected.


Cheers,
simon



reply via email to

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