mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
cmd/ebitenmobile: Use the better way to go-get dependencies
Updates #1487
This commit is contained in:
parent
1517f80430
commit
ad2d356262
@ -104,10 +104,9 @@ func prepareGomobileCommands() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// To record gomobile to go.sum for Go 1.16 and later, go-get gomobile instaed of golang.org/x/mobile (#1487).
|
// To record gomobile and its dependencies to go.sum for Go 1.16 and later, go-get golang.org/x/mobile with `...` (#1487).
|
||||||
// This also records gobind as gomobile depends on gobind indirectly.
|
|
||||||
// Note that `go mod tidy` doesn't work since this removes all the indirect imports.
|
// 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
|
return err
|
||||||
}
|
}
|
||||||
if localgm := os.Getenv("EBITENMOBILE_GOMOBILE"); localgm != "" {
|
if localgm := os.Getenv("EBITENMOBILE_GOMOBILE"); localgm != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user