Go Modules: cannot find module providing package

1,336 views
Skip to first unread message

flic...@gmail.com

unread,
Jul 25, 2018, 4:03:45 AM7/25/18
to golang-nuts
Hi,

I'm playing with go modules in 1.11 beta 2.
I'm trying to convert a project from dep to go modules and having problems with one dependency qglgen. It boils down to the following:

$ go1.11beta2 get -u github.com/vektah/gqlgen@381b34691fd93829e50ba8821412dc3467ec4821                                                                                                           
go: finding github.com/vektah/gqlgen 381b34691fd93829e50ba8821412dc3467ec4821
go: finding github.com/vektah/gqlgen latest
go get github.com/vektah/gqlgen@381b34691fd93829e50ba8821412dc3467ec4821: cannot find module providing package github.com/vektah/gqlgen


This is when adding the one dependency explicitly with go get. I get similar results if I try to let go do the work by creating go.mod and running go build, but then it complains in a similar way about some of the subdirectories of qglgen as well.
qglgen itself has not a go.mod file. However earlier experiments with vgo had no problem using this dependency.

Any idea what the problem is.


Paul Jolly

unread,
Jul 25, 2018, 4:29:16 AM7/25/18
to flic...@gmail.com, golan...@googlegroups.com
Please can you confirm, what version of git are you using?
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

flic...@gmail.com

unread,
Jul 25, 2018, 4:44:58 AM7/25/18
to golang-nuts
git version 2.7.4

Paul Jolly

unread,
Jul 25, 2018, 4:51:10 AM7/25/18
to flic...@gmail.com, golan...@googlegroups.com
Please see https://github.com/golang/go/issues/26501

Unfortunately, 1.11beta2 has an issue with older git versions. This is
fixed in Go tip and will therefore be fixed in the next beta; in the
meantime you can upgrade your git version as a temporary measure (if
that's possible in your situation).

flic...@gmail.com

unread,
Jul 25, 2018, 4:54:58 AM7/25/18
to golang-nuts
Thanks, will try that!
Reply all
Reply to author
Forward
0 new messages