xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 782 forks source link

add tool jom #5386

Closed ChrisCatCP closed 3 months ago

star-hengxing commented 3 months ago

定位了一下,不知道为啥这个提交会 break meson 包(报错也很奇怪) https://github.com/xmake-io/xmake-repo/pull/4959 https://github.com/xmake-io/xmake-repo/pull/4927

error: @programdir\core\base\os.lua:132: attempt to index a number value (local 'opt')
stack traceback:
    [@programdir\core\base\os.lua:132]:
    [@programdir\core\sandbox\modules\os.lua:109]: in function 'mv'
    [@programdir\modules\package\tools\meson.lua:393]: in function '_fix_libname_on_windows'
    [@programdir\modules\package\tools\meson.lua:553]: in function 'install'
    [A:\project\xmake\xmake-repo\packages\t\thorvg\xmake.lua:91]: in function 'script'
    [...dir\modules\private\action\require\impl\utils\filter.lua:114]: in function 'call'
    [...\modules\private\action\require\impl\actions\install.lua:404]:
waruqi commented 3 months ago

gsub 有两个返回值,第二个 count 返回值会 break os.mv 的 第三个参数 opt

我刚修了,重跑下就好了

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.


gsub has two return values. The second count return value will break the third parameter opt of os.mv.

I just repaired it, just run it again and it will be fine