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

x/mobile: gradle plugin uses same command-line flags for gomobile and gobind but thier flags are not same #18131

Open
tenntenn opened this Issue Dec 1, 2016 · 0 comments

Comments

Projects
None yet
3 participants
@tenntenn
Contributor

tenntenn commented Dec 1, 2016

Please answer these questions before submitting your issue. Thanks!

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

go version go1.7.3 darwin/amd64

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

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tenntenn/Documents/gopath"
GORACE=""
GOROOT="/usr/local/go1.7"
GOTOOLDIR="/usr/local/go1.7/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/mq/m9_twy8j1vl9ppr6j5xqtfq80000gn/T/go-build520115728=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

gradle plugin uses same command-line flags for gomobile and gobind as GOMOBILEFLAGS.
But thier flags are not same.
if -x or -v would be given to GOMOBILEFLAGS, gradle reports errors:

:gobindDebug
flag provided but not defined: -x
Usage of /Users/tenntenn/Documents/gopath/bin/gobind:
  -bootclasspath string
        Java bootstrap classpath.
  -classpath string
        Java classpath.
  -javapkg string
        custom Java package path prefix used instead of the default 'go'. Valid only with -lang=java.
  -lang string
        target language for bindings, either java, go, or objc (experimental). (default "java")
  -outdir string
        result will be written to the directory instead of stdout.
  -prefix string
        custom Objective-C name prefix used instead of the default 'Go'. Valid only with -lang=objc.
:gobindDebug FAILED

What did you expect to see?

gomobile and gobind flags should be given different variables such as GOMOBILEFLAGS and GOBINDFLAGS.

What did you see instead?

gradle reports errors.

@rsc rsc added this to the Unreleased milestone Jan 4, 2017

@gopherbot gopherbot added the mobile label Jul 20, 2017

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