Skip to content

cmd/go: go 1.11 beta2 linux unable to go get #26525

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

Closed
trashhalo opened this issue Jul 22, 2018 · 6 comments
Closed

cmd/go: go 1.11 beta2 linux unable to go get #26525

trashhalo opened this issue Jul 22, 2018 · 6 comments

Comments

@trashhalo
Copy link

trashhalo commented Jul 22, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.11beta2 linux/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/stephen/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/stephen/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/stephen/dev/wall/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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build886551842=/tmp/go-build -gno-record-gcc-switches"

What did you do?

downloaded beta2 on my linux box went to go get something. I cant seem to get any package.

What did you expect to see?

I expected go get vgo.

What did you see instead?

➜  wall go get -u golang.org/x/vgo
go: finding golang.org/x/vgo latest
go get golang.org/x/vgo: cannot find module providing package golang.org/x/vgo
@trashhalo
Copy link
Author

trashhalo commented Jul 22, 2018

Seems to be related to being in a directory with a go.mod
I can cd out of that directory and go get stuff. but if I am in it, nothing installs.

➜  wall go install
go: finding github.com/satori/go.uuid v1.2.0
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding github.com/dgraph-io/badger v1.5.3
go: finding github.com/mmcloughlin/geohash latest
go: finding github.com/labstack/echo/middlewarelatest
go: finding github.com/labstack/echo v3.2.1+incompatible
go: finding gopkg.in/go-playground/validator.v9v9.20.2
go: import "github.com/trashhalo/wall" ->
        import "github.com/dgraph-io/badger": cannot find module providing package github.com/dgraph-io/badger
go: import "github.com/trashhalo/wall" ->
        import "github.com/dgrijalva/jwt-go": cannot find module providing package github.com/dgrijalva/jwt-go
go: import "github.com/trashhalo/wall" ->
        import "github.com/labstack/echo": cannot find module providing package github.com/labstack/echo
go: import "github.com/trashhalo/wall" ->
        import "github.com/labstack/echo/middleware": cannot find module providing package github.com/labstack/echo/middleware
go: import "github.com/trashhalo/wall" ->
        import "github.com/mmcloughlin/geohash": cannot find module providing package github.com/mmcloughlin/geohash
go: import "github.com/trashhalo/wall" ->
        import "github.com/satori/go.uuid": cannot find module providing package github.com/satori/go.uuid
go: import "github.com/trashhalo/wall" ->
        import "gopkg.in/go-playground/validator.v9": cannot find module providing package gopkg.in/go-playground/validator.v9

@davecheney
Copy link
Contributor

davecheney commented Jul 22, 2018 via email

@trashhalo
Copy link
Author

Not that I can see. The project was a module project. So it makes sense to try and use modules. Root issue seems to be cannot find module providing package when doing installs with module behavior turned on. Latest vgo seems to have the same problem. I switched the repo back to gopath/dep for now to keep moving.

@davecheney
Copy link
Contributor

davecheney commented Jul 22, 2018 via email

@henryykt
Copy link

Do you have an old git < 2.10? If so see #26501

@trashhalo
Copy link
Author

@henryykt looks like thats its. 2.7.2. closing as dupe.

@golang golang locked and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants