Skip to content

Commit 3a07fa6

Browse files
committed
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
1 parent 858099f commit 3a07fa6

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)