Subject: Re: [bug#72508] [PATCH 2/5] gnu: erlang-yamerl: Update to 0.10.0.a24f448.

From: Andrew Tropin <[email-masked]>
Date: Wed, 07 Aug 2024 19:49:02 +0400

On 2024-08-07 11:23, Igor Goryachev via Guix-patches via wrote:

> * gnu/packages/erlang.scm (erlang-yamerl): Update to 0.10.0.a24f448.
>
> Change-Id: Ib279881ff14e6e46ef639c1bcbc53706fa55aef6
> ---
>  gnu/packages/erlang.scm | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm
> index 60d644ab8d..2452fd88ab 100644
> --- a/gnu/packages/erlang.scm
> +++ b/gnu/packages/erlang.scm
> @@ -292,17 +292,18 @@ (define-public erlang-cf
>  (define-public erlang-yamerl
>    (package
>      (name "erlang-yamerl")
> -    (version "0.10.0")
> +    (version "0.10.0.a24f448")

Take a look at package examples, with non-release version:
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/emacs.scm?h=#n560

The revision starts at 0 and get increased every time commit value is
updated.  It resets to 0, when the version changes.

Please, adjust to this style and send the whole series as v2.

>      (source
>       (origin
>         (method git-fetch)
>         (uri (git-reference
>               ;; There are no tests included on Hex.
>               (url "https://github.com/yakaz/yamerl")
> -             (commit (string-append "v" version))))
> +             ;; Fetching commit which includes Erlang 27+ related fixes.
> +             (commit "a24f448c0a8084f70b751dc38621047e56fb53cc")))
>         (file-name (git-file-name name version))
>         (sha256
> -        (base32 "0if8abgmispcfk7zhd0a5dndzwzbsmqrbyrm5shk375r2dbbwak6"))))
> +        (base32 "1csq0z4igyybjgmrynz4d49ysv437iyd2xzkhifb5x47lpdpfpkq"))))
>      (build-system rebar-build-system)
>      (synopsis "YAML and JSON parser in pure Erlang")
>      (description

-- 
Best regards,
Andrew Tropin