Skip to content

Commit ada9ee7

Browse files
i9Elias Naur
authored and
Elias Naur
committed
misc/androidstudio/src: drop the -i flag to avoid writing to a read-only $GOROOT
Gradle plugin failed on Mac due to -i flag trying to update /usr/local/go Since go 1.10, The old advice to add the -i flag for speed, as in go build -i or go test -i, is no longer necessary: builds run just as fast without -i. Fixes golang/go#25076 Change-Id: Ibddab3ff5961e06c8558f2a83af8a6964d622f40 Reviewed-on: https://go-review.googlesource.com/109144 Reviewed-by: Elias Naur <[email protected]>
1 parent 5d5d88d commit ada9ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/androidstudio/src/main/groovy/org/golang/mobile/GobindPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class GomobileTask extends BindTask implements OutputFileTask {
215215
if (outputFile == null) {
216216
outputFile = File.createTempFile("gobind-", ".aar")
217217
}
218-
def cmd = ["bind", "-i"]
218+
def cmd = ["bind"]
219219
// Add the generated R and databinding classes to the classpath.
220220
if (javaCompile) {
221221
def classpath = project.files(javaCompile.classpath, javaCompile.destinationDir)

0 commit comments

Comments
 (0)