Skip to content

Commit

Permalink
cmd/ebitenmobile: Use the better way to go-get dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed Feb 11, 2021
1 parent 3fecdd6 commit 9277ac1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/ebitenmobile/gomobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit 9277ac1

Please sign in to comment.