unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Sarah Morgensen <iskarian@mgsn.dev>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 49202@debbugs.gnu.org
Subject: bug#49202: guix import go type error (failed regex match?)
Date: Wed, 18 Aug 2021 22:25:09 -0700	[thread overview]
Message-ID: <86tujm3t1m.fsf@mgsn.dev> (raw)
In-Reply-To: Maxim Cournoyer's message of "Wed, 18 Aug 2021 23:20:08 -0400 (1 hour, 56 minutes, 24 seconds ago)"

Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

> So we're down to:
>
> $ guix import go github.com/cockroachdb/cockroach-go
> Backtrace:
>            9 (primitive-load "/home/maxim/.config/guix/current/bin/guix")
> In guix/ui.scm:
>    2185:7  8 (run-guix . _)
>   2148:10  7 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>    120:11  6 (guix-import . _)
> In guix/scripts/import/go.scm:
>    115:27  5 (guix-import-go . _)
> In guix/import/go.scm:
>    531:18  4 (go-module->guix-package _ #:goproxy _ #:version _ #:pin-versions? _)
> In guix/git.scm:
>     247:4  3 (update-cached-checkout _ #:ref _ #:recursive? _ #:check-out? _ #:starting-commit _ # _ # _)
>    236:18  2 (resolve _)
> In git/reference.scm:
>      60:8  1 (_ _ _)
> In git/bindings.scm:
>      77:2  0 (raise-git-error _)

This one is happening because the go.mod served by pkg.go.dev reports
that the module version is "2.0.1+incompatible".  This is because the
proper import path is "github.com/cockroachdb/cockroach-go/v2" as the
first line of the project's go.mod states.  An import for that path is
successful.

>
> $ guix import go dmitri.shuralyov.com/gpu/mtl
> Backtrace:
>            5 (primitive-load "/home/maxim/.config/guix/current/bin/guix")
> In guix/ui.scm:
>    2185:7  4 (run-guix . _)
>   2148:10  3 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>    120:11  2 (guix-import . _)
> In guix/scripts/import/go.scm:
>    115:27  1 (guix-import-go . _)
> In guix/import/go.scm:
>    615:19  0 (go-module->guix-package "dmitri.shuralyov.com/gpu/mtl" #:goproxy _ #:version _ # _)
>
> guix/import/go.scm:615:19: In procedure go-module->guix-package:
> In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f

This one is happening because the url

   "dmitri.shuralyov.com/gpu/mtl?go-get=1"

which is used to determine the VCS type and location, does not actually
have the headers it is supposed to (instead, they are written in text on
the body of the page...)  It should be addressed upstream, but we should
also have a better error than a backtrace.

>
> Thanks,
>
> Maxim




      parent reply	other threads:[~2021-08-19  5:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-23 23:32 bug#49202: guix import go type error (failed regex match?) raingloom
2021-06-24 14:02 ` zimoun
2021-06-24 15:17   ` Sarah Morgensen via Bug reports for GNU Guix
2021-06-24 21:20     ` Sarah Morgensen via Bug reports for GNU Guix
2021-08-19  3:20     ` Maxim Cournoyer
2021-06-25 16:40 ` zimoun
2021-06-28 16:18   ` zimoun
2021-06-30 21:12     ` raingloom
2021-08-19  5:25 ` Sarah Morgensen [this message]

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=86tujm3t1m.fsf@mgsn.dev \
    --to=iskarian@mgsn.dev \
    --cc=49202@debbugs.gnu.org \
    --cc=maxim.cournoyer@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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).