[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#41510] [PATCH] guix: print: Update deprecated method
From: |
Ludovic Courtès |
Subject: |
[bug#41510] [PATCH] guix: print: Update deprecated method |
Date: |
Sat, 30 May 2020 16:17:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hi,
Ekaitz Zarraga <ekaitz@elenq.tech> skribis:
> guix/import/print.scm:77:21: warning: 'origin-sha256' is deprecated, use
> 'origin-hash' instead
[...]
> - (sha256 (origin-sha256 source))
> + (sha256 (origin-hash source))
This is quite correct (contrary to what the warning suggests). You also
have to use ‘content-hash-value’. The code also needs to check whether
it’s actually sha256 or some other algorithm.
Make sure to run:
make check TESTS=tests/print.scm
afterwards!
Thanks,
Ludo’.