From 3be6c78e85ce8b7f10ef4b1a55284b98c9bd36b6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 16 Dec 2023 19:51:48 +0900 Subject: [PATCH] cmd/ebitenmobile: bug fix: failed to resolve dependencies Something was changed by updating gomobile (76ac6878050a2eef81867f2c6c21108e59919e8f), and an additional go-mod-tidy is now required. Closes #2887 --- cmd/ebitenmobile/gomobile.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/ebitenmobile/gomobile.go b/cmd/ebitenmobile/gomobile.go index d8e65db97..7e761b749 100644 --- a/cmd/ebitenmobile/gomobile.go +++ b/cmd/ebitenmobile/gomobile.go @@ -191,6 +191,10 @@ import ( return tmp, err } + // The newly added Go files like gobind.go might add new dependencies. + if err := runGo("mod", "tidy"); err != nil { + return tmp, err + } if err := runGo("build", "-o", exe(filepath.Join("bin", "gobind")), "-tags", "ebitenmobilegobind", filepath.Join("src", "gobind.go")); err != nil { return tmp, err }