Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.10.2 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Jakub Tomana\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Jakub Tomana\go
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\tmp\go-build226750162=/tmp/go-build -gno-record-gcc-switches
What did you do?
Run gomobile bind -target=android projectNamecommand, with $GOPATH set to directory that contains whitespace
What did you expect to see?
Generated .aar file
What did you see instead?
gomobile: go build -buildmode=c-shared -o=C:\tmp\gomobile-work-583627471\android\src\main\jniLibs\armeabi-v7a\libgojni.so gobind failed: exit status 2
# runtime/cgo
exec: "C:\\Users\\My": file does not exist
In this example user path is C:\\Users\My Name
The text was updated successfully, but these errors were encountered:
kubastick
changed the title
x/mobile: Binding go mobile framework on windows with username that contains whitespace fails
x/mobile: Binding go mobile framework on windows with $GOPATH that contains whitespace fails
Aug 19, 2018
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.2 windows/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Jakub Tomana\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Jakub Tomana\go
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\tmp\go-build226750162=/tmp/go-build -gno-record-gcc-switches
What did you do?
Run
gomobile bind -target=android projectName
command, with$GOPATH
set to directory that contains whitespaceWhat did you expect to see?
Generated .aar file
What did you see instead?
In this example user path is
C:\\Users\My Name
The text was updated successfully, but these errors were encountered: