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

Gobind fails when outside of $GOPATH #30047

Closed
taybart opened this issue Feb 1, 2019 · 1 comment
Closed

Gobind fails when outside of $GOPATH #30047

taybart opened this issue Feb 1, 2019 · 1 comment

Comments

@taybart
Copy link

taybart commented Feb 1, 2019

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

$ go version
go version go1.11.5 darwin/amd64

Does this issue reproduce with the latest release?

Uncertain, I am unable to test master at the current time. gobind and gomobile are at latest though

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

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/taybart/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/taybart/dev/.go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.11.5/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.11.5/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/taybart/dev/journey/code/libjourney/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/k7/zvpq0nq54cg17l8sqfdfhzqr0000gn/T/go-build741949760=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I moved my gomobile project outside of the designated $GOPATH. I symlinked the project in there and it builds fine if my cd "path" is in there. It seems that gobind is not aware of the new module system.

What did you expect to see?

Correct building when cd "path" is outside of $GOPATH

What did you see instead?

can't load package: package gobind: unknown import path "gobind": cannot find module providing package gobind

@mvdan
Copy link
Member

mvdan commented Feb 1, 2019

Seems like a duplicate of #27234, as x/mobile doesn't support modules yet.

@mvdan mvdan closed this as completed Feb 1, 2019
@golang golang locked and limited conversation to collaborators Feb 1, 2020
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

3 participants