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

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

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

Comments

Projects
None yet
3 participants
@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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Contributor

davecheney commented Jul 22, 2018

@trashhalo

This comment has been minimized.

Copy link

trashhalo commented Jul 22, 2018

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

This comment has been minimized.

Copy link
Contributor

davecheney commented Jul 22, 2018

@henryykt

This comment has been minimized.

Copy link

henryykt commented Jul 22, 2018

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

@trashhalo

This comment has been minimized.

Copy link

trashhalo commented Jul 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment