Subject: [bug#62284] [PATCH v2 71/71] Revert "gnu: go-golang-org-x-net: Update to 0.5.0."

From: Miguel Ángel Moreno <[email-masked]>
Date: Sun, 11 Feb 2024 23:47:34 +0100

On 2024-02-11 23:09, Miguel Ángel Moreno wrote:

> This reverts commit 871a0fe5a38ac72a77a920d048770c2c51ab31c4.
> ---
>  gnu/packages/golang.scm | 22 ++++++++++------------
>  1 file changed, 10 insertions(+), 12 deletions(-)
>
> diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
> index 4b639edae7..ec0950b232 100644
> --- a/gnu/packages/golang.scm
> +++ b/gnu/packages/golang.scm
> @@ -3746,11 +3746,11 @@ (define-public gopls
>      (license license:bsd-3)))
>  
>  (define-public go-golang-org-x-net
> -  (let ((commit "8e0e7d8d38f2b6d21d742845570dde2902d06a1d")
> -        (revision "0"))
> +  (let ((commit "ba9fcec4b297b415637633c5a6e8fa592e4a16c3")
> +        (revision "4"))
>      (package
>        (name "go-golang-org-x-net")
> -      (version (git-version "0.5.0" revision commit))
> +      (version (git-version "0.0.0" revision commit))
>        (source (origin
>                  (method git-fetch)
>                  (uri (git-reference
> @@ -3759,17 +3759,15 @@ (define-public go-golang-org-x-net
>                  (file-name (git-file-name name version))
>                  (sha256
>                   (base32
> -                  "1fidlcn3vcz42v2lc0rpmqh3bz08bcklj6jvnmz2vvgc481ci5hy"))))
> +                  "1hbqvy6r0s5h0dpdqw8fynl3cq0acin3iyqki9xvl5r8h33yb9bx"))))
>        (build-system go-build-system)
>        (arguments
> -       (list
> -        #:import-path "golang.org/x/net"
> -        ;; Source-only package
> -        #:tests? #f
> -        #:phases
> -        #~(modify-phases %standard-phases
> -            ;; Source-only package
> -            (delete 'build))))
> +       `(#:import-path "golang.org/x/net"
> +         ; Source-only package
> +         #:tests? #f
> +         #:phases
> +         (modify-phases %standard-phases
> +           (delete 'build))))
>        (synopsis "Go supplemental networking libraries")
>        (description "This package provides supplemental Go networking libraries.")
>        (home-page "https://go.googlesource.com/net")
> -- 
>
> 2.41.0

Hi,

The latest revision of this patch series rebases the changes against the
latest Guix master.  Further, upon trying to build the package, I
noticed that an update recently made to the go-golang-org-x-net package
causes an error on go-mau-fi-whatsmeow's build, so I've decided to
revert its commit, and I presume it's related to the package having an
"embed:" directive (which gives issues when building Go packages in
Guix).  I'd highly appreciate it if you could help me further debug this
issue or guide me on another course of action.

-- 
Best regards,
Miguel Ángel Moreno