Skip to content

Commit 032b214

Browse files
morningsendhyangah
authored andcommitted
cmd/gomobile: add missing latest tag to gobind
Go install requires a version to be provided after the package name. gomobile init command is updated to reflect this new requirement Fixes golang/go#50994 Change-Id: I014bd6815d9620415ceb43dd7e0aea3afac60556 GitHub-Last-Rev: 3a07fa6 GitHub-Pull-Request: #75 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/384414 Trust: Cherry Mui <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 4f294b3 commit 032b214

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/gomobile/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func runInit(cmd *command) error {
7878
}()
7979

8080
// Make sure gobind is up to date.
81-
if err := goInstall([]string{"golang.org/x/mobile/cmd/gobind"}, nil); err != nil {
81+
if err := goInstall([]string{"golang.org/x/mobile/cmd/gobind@latest"}, nil); err != nil {
8282
return err
8383
}
8484

cmd/gomobile/init_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ var initTmpl = template.Must(template.New("output").Parse(`GOMOBILE={{.GOPATH}}/
175175
rm -r -f "$GOMOBILE"
176176
mkdir -p $GOMOBILE
177177
WORK={{.GOPATH}}/pkg/gomobile/work
178-
go install -x golang.org/x/mobile/cmd/gobind
178+
go install -x golang.org/x/mobile/cmd/gobind@latest
179179
cp $OPENAL_PATH/include/AL/al.h $GOMOBILE/include/AL/al.h
180180
mkdir -p $GOMOBILE/include/AL
181181
cp $OPENAL_PATH/include/AL/alc.h $GOMOBILE/include/AL/alc.h

0 commit comments

Comments
 (0)