Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get error: unexpected module path "go.etcd.io/bbolt" #1219

Closed
jiekun opened this issue Sep 5, 2020 · 3 comments
Closed

go get error: unexpected module path "go.etcd.io/bbolt" #1219

jiekun opened this issue Sep 5, 2020 · 3 comments
Labels
kind/bug A bug in cobra; unintended behavior

Comments

@jiekun
Copy link

jiekun commented Sep 5, 2020

➜  tools go get -u github.com/spf13/cobra/[email protected]
go: finding github.com/spf13/cobra/cobra v1.0.0
go: finding github.com/tmc/grpc-websocket-proxy latest
go: finding github.com/armon/consul-api latest
go: finding gopkg.in/check.v1 latest
go: finding github.com/golang/groupcache latest
go: finding golang.org/x/lint latest
go: finding golang.org/x/time latest
go: finding github.com/golang/glog latest
go: finding github.com/xiang90/probing latest
go: finding golang.org/x/net latest
go: finding github.com/coreos/go-systemd latest
go: finding golang.org/x/sync latest
go: finding golang.org/x/oauth2 latest
go: github.com/coreos/[email protected]: parsing go.mod: unexpected module path "go.etcd.io/bbolt"
go: github.com/coreos/[email protected]: go.mod has post-v0 module path "github.com/coreos/go-systemd/v22" at revision 1ac580e0cdfa
go: finding golang.org/x/crypto latest
go get: error loading module requirements
➜  tools
➜  tools go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jiekunzhu/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/jiekunzhu/vhost/go/"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/[email protected]/1.12.17/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/[email protected]/1.12.17/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jiekunzhu/tools/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hv/xnsdqzkn28d32f7t1qpph_7w0000gp/T/go-build217942708=/tmp/go-build -gno-record-gcc-switches -fno-common"
@jpmcb
Copy link
Collaborator

jpmcb commented Sep 23, 2020

This should be resolved from #1233

I've also confirmed:

❯ go get -u github.com/spf13/cobra
go: downloading github.com/spf13/cobra v1.0.0
go: github.com/spf13/cobra upgrade => v1.0.0
go: downloading github.com/spf13/pflag v1.0.3
go: github.com/spf13/pflag upgrade => v1.0.5
❯

Feel free to reopen if you're still having problems!!

@jpmcb jpmcb added the kind/bug A bug in cobra; unintended behavior label Sep 23, 2020
@jpmcb jpmcb closed this as completed Sep 23, 2020
@umarcor
Copy link
Contributor

umarcor commented Sep 25, 2020

@jpmcb both this issue and #1215 seem to be about installing the CLI tool (go get -u github.com/spf13/cobra/cobra), not the library (go get -u github.com/spf13/cobra). I can confirm that both are working ATM.

@jpmcb
Copy link
Collaborator

jpmcb commented Oct 1, 2020

Correct, this was a problem with downloading the CLI tool. The root of this problem was that the go mod file was split between the cli tool and the cobra library. We decided to revert that change with the above PR since we've seen so many problems with that change. While we felt that the number of dependencies were small enough to warrant a single go mod file, if someone has a better strategy to keep the cobra dependencies lean, go ahead and open a new issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in cobra; unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants