unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Mortimer Cladwell <mbcladwell@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: How to use guix hash --serializer?
Date: Tue, 4 Jan 2022 17:53:55 +0100	[thread overview]
Message-ID: <CAJ3okZ15xP05Jm4m49HSp1TUmLLF4sgS7ORReQmhdrLoJHHYng@mail.gmail.com> (raw)
In-Reply-To: <CAOcxjM7kWDhwO-O+LLiWrAu=UKA2V=8VNjwfNrYVH-afE9QDkQ@mail.gmail.com>

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	other threads:[~2022-01-04 16:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-04 16:32 How to use guix hash --serializer? Mortimer Cladwell
2022-01-04 16:53 ` zimoun [this message]
2022-01-04 19:09   ` Timothy Sample
2022-01-04 19:48     ` Mortimer Cladwell
2022-01-04 19:57       ` Tobias Geerinckx-Rice
2022-01-04 19:58       ` Mortimer Cladwell
2022-01-04 20:17       ` zimoun
2022-01-04 20:44         ` Mortimer Cladwell
2022-01-04 20:57           ` Tobias Geerinckx-Rice
2022-01-04 21:02           ` zimoun
2022-01-04 21:16             ` Mortimer Cladwell
2022-01-04 20:54     ` zimoun
2022-01-05  1:44       ` Timothy Sample
2022-01-05  7:43         ` zimoun

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=CAJ3okZ15xP05Jm4m49HSp1TUmLLF4sgS7ORReQmhdrLoJHHYng@mail.gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=mbcladwell@gmail.com \
    /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.
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).