GNU bug report logs - #52362
guix import go error

Previous Next

Package: guix;

Reported by: Stephen Paul Weber <singpolyma <at> singpolyma.net>

Date: Tue, 7 Dec 2021 22:09:02 UTC

Severity: normal

Full log


Message #32 received at 52362 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 52362 <at> debbugs.gnu.org
Subject: Re: bug#52362: guix import go error
Date: Thu, 25 May 2023 16:21:17 +0200
Hi,


On mar., 01 mars 2022 at 00:55, Nicolas Goaziou <mail <at> nicolasgoaziou.fr> wrote:

>   ./pre-inst-env guix import go --recursive rclone

Using Guix 14c0380, I get:

--8<---------------cut here---------------start------------->8---
$ guix import go --recursive rclone
guix import: warning: Failed to import package "rclone".
reason: "https://proxy.golang.org/rclone/@v/list" could not be fetched: HTTP error 404 ("Not Found").
This package and its dependencies won't be imported.
--8<---------------cut here---------------end--------------->8---

Moreover, instead of the patch in this thread, I am proposing #63647 [1]
which warns by handling the error, for instance, it displays using
another example from the thread,

--8<---------------cut here---------------start------------->8---
guix import: warning: Git error: reference 'refs/tags/v0.11.29' not found in https://github.com/Azure/go-autorest
(define-public go-github-com-azure-go-autorest-autorest
  (package
    (name "go-github-com-azure-go-autorest-autorest")
    (version "0.11.29")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/Azure/go-autorest")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0000000000000000000000000000000000000000000000000000"))))
    (build-system go-build-system)
    (arguments
     '(#:import-path "github.com/Azure/go-autorest/autorest"
       #:unpack-path "github.com/Azure/go-autorest"))
    (propagated-inputs `(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
                         ("go-github-com-golang-jwt-jwt-v4" ,go-github-com-golang-jwt-jwt-v4)
                         ("go-github-com-azure-go-autorest-tracing" ,go-github-com-azure-go-autorest-tracing)
                         ("go-github-com-azure-go-autorest-logger" ,go-github-com-azure-go-autorest-logger)
                         ("go-github-com-azure-go-autorest-autorest-mocks" ,go-github-com-azure-go-autorest-autorest-mocks)
                         ("go-github-com-azure-go-autorest-autorest-adal" ,go-github-com-azure-go-autorest-autorest-adal)
                         ("go-github-com-azure-go-autorest" ,go-github-com-azure-go-autorest)))
    (home-page "https://github.com/Azure/go-autorest")
    (synopsis #f)
    (description
     "Package autorest implements an HTTP request pipeline suitable for use across
multiple go-routines and provides the shared routines relied on by AutoRest (see
@@url{https://github.com/Azure/autorest/,https://github.com/Azure/autorest/})
generated Go code.")
    (license license:asl2.0)))
--8<---------------cut here---------------end--------------->8---

Aside, indeed the proposed patch in this thread could also be merged.

1: https://issues.guix.gnu.org/issue/63647


Cheers,
simon




This bug report was last modified 2 years and 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.