From 5fdd6687da2bd7f8512d91256ebc92d724ed4d79 Mon Sep 17 00:00:00 2001 From: "Hyang-Ah (Hana) Kim" Date: Wed, 11 Feb 2015 17:35:44 -0500 Subject: [PATCH] cmd/gomobile: provide the package name to the go build command. Change-Id: I9aeb74f24bb19454ee7a7b861690857e9c562c08 Reviewed-on: https://go-review.googlesource.com/4610 Reviewed-by: David Crawshaw --- cmd/gomobile/build.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/gomobile/build.go b/cmd/gomobile/build.go index ea7b2e8..c708f51 100644 --- a/cmd/gomobile/build.go +++ b/cmd/gomobile/build.go @@ -154,6 +154,9 @@ func runBuild(cmd *command) error { if buildI { gocmd.Args = append(gocmd.Args, "-i") } + + gocmd.Args = append(gocmd.Args, pkg.ImportPath) + gocmd.Stdout = os.Stdout gocmd.Stderr = os.Stderr gocmd.Env = []string{