[Top][All Lists]

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

Re: How to use guix hash --serializer?

From: Mortimer Cladwell
Subject: Re: How to use guix hash --serializer?
Date: Tue, 4 Jan 2022 14:48:19 -0500

Thanks Tim, Simon, but that does not work for me.

mbc@HP8300:~/projects$ guix hash -S nar -x ./shinyln
mbc@HP8300:~/projects$ cd shinyln/
mbc@HP8300:~/projects/shinyln$ guix hash -S nar -x .

mbc@HP8300:~/projects/shinyln$ guix hash -S git -x .
mbc@HP8300:~/projects/shinyln$ cd ..
mbc@HP8300:~/projects$ guix hash -S git -x ./shinyln

====error during packaging=============
building /gnu/store/2a2016wffiy0cwvayvsz64r1f88k05mg-git-checkout.drv...
\r:sha256 hash mismatch for
  expected hash: 1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj
  actual hash:   10nfjllq28jrzxd4dfqm6xzx8f2g1m6p2vivzihxc7d3ac1imnk2

So seems like it doesn't matter whether I am inside or outside the
directory I get the same hash (reasonable).
Neither git nor nar provide the correct hash

FYI from
at the bottom explaining --exclude-vcs:

$ git clone
$ cd foo
$ guix hash -rx .

Suggests (to me) that you go inside the directory to calculate hash,
though as above seems not to matter.



On Tue, Jan 4, 2022 at 2:09 PM Timothy Sample <> wrote:

> Hi zimoun,
> zimoun <> writes:
> > Indeed,
> >
> >     $ guix hash -S git foo -x
> >     0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal
> >     $ guix hash -S git foo
> >     0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal
> >
> > Hum, I will check if it is expected.
> I’m pretty sure it’s a bug.  Fortunately, with Disarchive 0.4.0, the
> following (untested) patch should fix it:
> Hope that helps!
> -- Tim

reply via email to

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