Skip to content

go get gophernotes fails with GO111MODULE=on #170

@kortschak

Description

@kortschak

I discovered this trying to set up a my-binder using gophernotes with a repo that has a go.mod file. Apparently my-binder sets GO111MODULE=on when this file exists and the Go version permits.

This is the failure (replicated locally not in $GOPATH):

~ $ echo $GO111MODULE
on
~ $ go get -v github.com/gopherdata/gophernotes
go: finding github.com/gopherdata/gophernotes v0.2.1
go: downloading github.com/gopherdata/gophernotes v0.2.1
go: extracting github.com/gopherdata/gophernotes v0.2.1
go: finding github.com/alecthomas/gozmq latest
go: finding github.com/nu7hatch/gouuid latest
go: finding github.com/gopherds/gophernotes/internal/repl latest
go: downloading github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: extracting github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
go: downloading github.com/alecthomas/gozmq v0.0.0-20140622232202-d1b01a2df6b2
go: extracting github.com/alecthomas/gozmq v0.0.0-20140622232202-d1b01a2df6b2
go: finding github.com/gopherds/gophernotes/internal latest
go: finding github.com/gopherds/gophernotes v0.2.1
go: downloading github.com/gopherds/gophernotes v0.2.1
go: extracting github.com/gopherds/gophernotes v0.2.1
Fetching https://golang.org/x/tools/imports?go-get=1
Fetching https://golang.org/x/tools/go/ast/astutil?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/ast/astutil?go-get=1 (status code 200)
get "golang.org/x/tools/go/ast/astutil": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/go/ast/astutil?go-get=1
get "golang.org/x/tools/go/ast/astutil": verifying non-authoritative meta tag
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools/imports?go-get=1 (status code 200)
get "golang.org/x/tools/imports": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/imports?go-get=1
get "golang.org/x/tools/imports": verifying non-authoritative meta tag
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
go: finding github.com/motemen/go-quickfix latest
go: finding golang.org/x/tools/go/ast/astutil latest
go: finding golang.org/x/tools/imports latest
go: downloading github.com/motemen/go-quickfix v0.0.0-20160413151302-5c522febc679
go: extracting github.com/motemen/go-quickfix v0.0.0-20160413151302-5c522febc679
Fetching https://golang.org/x/tools/go/ast?go-get=1
Fetching https://golang.org/x/tools?go-get=1
Parsing meta tags from https://golang.org/x/tools/go/ast?go-get=1 (status code 200)
get "golang.org/x/tools/go/ast": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/go/ast?go-get=1
get "golang.org/x/tools/go/ast": verifying non-authoritative meta tag
go: finding golang.org/x/tools/go/ast latest
Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200)
get "golang.org/x/tools": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools?go-get=1
go: finding golang.org/x/tools latest
Fetching https://golang.org/x/tools/go?go-get=1
go: downloading golang.org/x/tools v0.0.0-20190418235243-4796d4bd3df0
Parsing meta tags from https://golang.org/x/tools/go?go-get=1 (status code 200)
get "golang.org/x/tools/go": found meta tag get.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at https://golang.org/x/tools/go?go-get=1
get "golang.org/x/tools/go": verifying non-authoritative meta tag
go: finding golang.org/x/tools/go latest
go: extracting golang.org/x/tools v0.0.0-20190418235243-4796d4bd3df0
golang.org/x/tools/internal/semver
github.com/alecthomas/gozmq
golang.org/x/tools/internal/fastwalk
golang.org/x/tools/go/ast/astutil
github.com/nu7hatch/gouuid
github.com/pkg/errors
golang.org/x/tools/go/internal/gcimporter
golang.org/x/tools/internal/module
golang.org/x/tools/go/internal/packagesdriver
golang.org/x/tools/internal/gopathwalk
github.com/motemen/go-quickfix
# github.com/alecthomas/gozmq
pkg/mod/github.com/alecthomas/gozmq@v0.0.0-20140622232202-d1b01a2df6b2/zmq_2_x.go:35:41: could not determine kind of name for C.ZMQ_HWM
pkg/mod/github.com/alecthomas/gozmq@v0.0.0-20140622232202-d1b01a2df6b2/zmq_2_x.go:34:40: could not determine kind of name for C.ZMQ_MCAST_LOOP
pkg/mod/github.com/alecthomas/gozmq@v0.0.0-20140622232202-d1b01a2df6b2/zmq_2_x.go:32:40: could not determine kind of name for C.ZMQ_RECOVERY_IVL_MSEC
pkg/mod/github.com/alecthomas/gozmq@v0.0.0-20140622232202-d1b01a2df6b2/zmq_2_x.go:33:40: could not determine kind of name for C.ZMQ_SWAP
golang.org/x/tools/go/gcexportdata
golang.org/x/tools/go/packages
golang.org/x/tools/imports
github.com/gopherds/gophernotes/internal/repl

It looks like you need to tag a more recent version to ensure that users using modules will get a sufficiently recent version by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions