[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.
====nar==============
mbc@HP8300:~/projects$ guix hash -S nar -x ./shinyln
1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj
mbc@HP8300:~/projects$ cd shinyln/
mbc@HP8300:~/projects/shinyln$ guix hash -S nar -x .
1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj
====git==================
mbc@HP8300:~/projects/shinyln$ guix hash -S git -x .
0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x
mbc@HP8300:~/projects/shinyln$ cd ..
mbc@HP8300:~/projects$ guix hash -S git -x ./shinyln
0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x
====error during packaging=============
building /gnu/store/2a2016wffiy0cwvayvsz64r1f88k05mg-git-checkout.drv...
\r:sha256 hash mismatch for
/gnu/store/w2sl6n4jnbhzs8qp1k4lff35h1yml2c4-git-checkout:
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 https://guix.gnu.org/manual/en/html_node/Invoking-guix-hash.html
at the bottom explaining --exclude-vcs:
$ git clone http://example.org/foo.git
$ cd foo
$ guix hash -rx .
Suggests (to me) that you go inside the directory to calculate hash,
though as above seems not to matter.
Thanks
Mortimer
On Tue, Jan 4, 2022 at 2:09 PM Timothy Sample <samplet@ngyro.com> wrote:
> Hi zimoun,
>
> zimoun <zimon.toutoune@gmail.com> 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
>
- How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?, Timothy Sample, 2022/01/04
- Re: How to use guix hash --serializer?,
Mortimer Cladwell <=
- Re: How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, Tobias Geerinckx-Rice, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, Tobias Geerinckx-Rice, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?, Mortimer Cladwell, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/04
- Re: How to use guix hash --serializer?, Timothy Sample, 2022/01/04
- Re: How to use guix hash --serializer?, zimoun, 2022/01/05