I tried installing the tool on my Linux computer using
$ go get github.com/MichaelMure/git-bug
But the setup failed when trying to resolve the AST package, with the following log.
go/src/github.com/MichaelMure/git-bug/graphql/graph/gen_graph.go:22:2: cannot find package "github.com/vektah/gqlparser/ast" in any of:
/usr/lib/go/src/github.com/vektah/gqlparser/ast (from $GOROOT)
/home/diane/go/src/github.com/vektah/gqlparser/ast (from $GOPATH)
For info, I have Go 1.14.2
Michael Muré (MichaelMure) commented (edited)
Someone else reported issue when using go get like this. Could you try to clone the repository and make from there ?
$nyx (Arteneko) commented
Going through make does indeed work, as per log.
This is definitely a weird behaviour.go generate
go generate
go: downloading github.com/MichaelMure/go-term-text v0.2.8
go: downloading github.com/skratchdot/open-golang v0.0.0-20190402232053-79abb63cd66e
go: downloading github.com/araddon/dateparse v0.0.0-20190622164848-0fb0a474d195
go: downloading golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/go-errors/errors v1.0.1
go: downloading github.com/gorilla/mux v1.7.4
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading github.com/spf13/cobra v0.0.7
go: downloading github.com/99designs/gqlgen v0.10.3-0.20200209012558-b7a58a1c0e4b
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/xanzy/go-gitlab v0.29.0
go: downloading github.com/vektah/gqlparser v1.3.1
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/fatih/color v1.9.0
go: downloading github.com/shurcooL/githubv4 v0.0.0-20190601194912-068505affed7
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading github.com/google/go-querystring v1.0.0
go: downloading github.com/mattn/go-colorable v0.1.4
go: downloading github.com/hashicorp/go-retryablehttp v0.6.4
go: downloading github.com/phayes/freeport v0.0.0-20171002181615-b8543db493a5
go: downloading golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288
go: downloading github.com/blang/semver v3.5.1+incompatible
go: downloading github.com/awesome-gocui/gocui v0.6.1-0.20191115151952-a34ffb055986
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading golang.org/x/sys v0.0.0-20200116001909-b77594299b42
go: downloading golang.org/x/time v0.0.0-20191024005414-555d28b269f0
go: downloading github.com/cheekybits/genny v0.0.0-20170328200008-9127e812e1e9
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/shurcooL/graphql v0.0.0-20181231061246-d48a9a75455f
go: downloading golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: downloading github.com/agnivade/levenshtein v1.0.1
go: downloading github.com/gorilla/websocket v1.4.0
go: downloading github.com/awesome-gocui/termbox-go v0.0.0-20190427202837-c0aef3d18bcc
go: downloading github.com/hashicorp/golang-lru v0.5.4
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
Generating Markdown documentation ...
Generating manpage ...
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
WARNING: go-md2man does not handle node type HTMLSpan
Generating Bash completion file ...
Generating PowerShell completion file ...
Generating ZSH completion file ...
go build -ldflags "-X github.com/MichaelMure/git-bug/commands.GitCommit=d3fc94a650f863245052c11b5fe346786fd04dcb -X github.com/MichaelMure/git-bug/commands.GitLastTag=0.7.1 -X github.com/MichaelMure/git-bug/commands.GitExactTag=undefined" .
Michael Muré (MichaelMure) commented
Yeah, somehow when using go get, the version of dependencies specified in the go.mod file are not respected. Obviously, this lead to problems.
$nyx (Arteneko) commented
Indeed. This is weird, I never noticed such an issue... That would require some investigation over the go tool's package management
Michael Muré (MichaelMure) commented
It might be related to go 1.14 as nobody complained about that before it was out.