From ad2d3562620f29a617c1f77f20c5420760e9f266 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 12 Feb 2021 02:45:02 +0900 Subject: [PATCH] cmd/ebitenmobile: Use the better way to go-get dependencies Updates #1487 --- cmd/ebitenmobile/gomobile.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/ebitenmobile/gomobile.go b/cmd/ebitenmobile/gomobile.go index cc1c9732e..749957be9 100644 --- a/cmd/ebitenmobile/gomobile.go +++ b/cmd/ebitenmobile/gomobile.go @@ -104,10 +104,9 @@ func prepareGomobileCommands() error { return err } - // To record gomobile to go.sum for Go 1.16 and later, go-get gomobile instaed of golang.org/x/mobile (#1487). - // This also records gobind as gomobile depends on gobind indirectly. + // To record gomobile and its dependencies to go.sum for Go 1.16 and later, go-get golang.org/x/mobile with `...` (#1487). // Note that `go mod tidy` doesn't work since this removes all the indirect imports. - if err := runGo("get", "golang.org/x/mobile/cmd/gomobile@"+gomobileHash); err != nil { + if err := runGo("get", "golang.org/x/mobile/...@"+gomobileHash); err != nil { return err } if localgm := os.Getenv("EBITENMOBILE_GOMOBILE"); localgm != "" {