mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
cmd/ebitenmobile: bug fix: need toolchain for the temporary go.mod
Updates #3086
This commit is contained in:
parent
dd19552f88
commit
f63a757b1e
@ -161,6 +161,12 @@ import (
|
||||
return tmp, err
|
||||
}
|
||||
}
|
||||
// runtime.Version() is the current executing Go version. For example, this is the version of the toolchain directive in go.mod.
|
||||
// This might differ from the Go command version under the temporary directory.
|
||||
// To avoid the version mismatch, set the toolchain explicitly (#3086).
|
||||
if err := runGo("mod", "edit", "-toolchain="+runtime.Version()); err != nil {
|
||||
return tmp, err
|
||||
}
|
||||
if err := runGo("mod", "tidy"); err != nil {
|
||||
return tmp, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user