You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version check has priority over commands passed to xmake.
I wanted to update in a folder where I have a xmake.lua file with
set_xmakever("2.5.1")
Then, in order to check if the bug is still there in the latest version, I updated and changed this line to
set_xmakever("2.5.2")
The bug is still present.
Expected behavior
The expected behavior would be to avoid any reading of the xmake.lua file while running the command update
Error output
v2.3.9+202011250023
error: @programdir\core\project\project.lua:1064: xmake v2.3.9 < v2.5.1, please run `$xmake update` to upgrade xmake!
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:787: in function 'raise'
@programdir\core\project\project.lua:1064: in function 'tasks'
@programdir\core\project\project.lua:1054: in function 'task'
@programdir\core\main.lua:281: in function <@programdir\core\main.lua:219>
v2.5.1+202101210158
error: @programdir\core\project\project.lua:1070: xmake v2.5.1 < v2.5.2, please run `$xmake update` to upgrade xmake!
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:787: in function 'raise'
@programdir\core\project\project.lua:1070: in function 'tasks'
@programdir\core\project\project.lua:1060: in function 'task'
@programdir\core\main.lua:281: in function <@programdir\core\main.lua:219>
Related Environment
Please provide compiling and running environment information:
This is clearly a tiny bug, which can be avoided by running xmake update in a folder containing no xmake.lua file, but it's better to know existing bugs even if fixing them is not a priority.
The text was updated successfully, but these errors were encountered:
AntoineJT
changed the title
Version check is prioritary over commands
Version check has priority over commands
Jan 30, 2021
Describe the bug
The version check has priority over commands passed to xmake.
I wanted to update in a folder where I have a xmake.lua file with
Then, in order to check if the bug is still there in the latest version, I updated and changed this line to
The bug is still present.
Expected behavior
The expected behavior would be to avoid any reading of the
xmake.lua
file while running the commandupdate
Error output
v2.3.9+202011250023
v2.5.1+202101210158
Related Environment
Please provide compiling and running environment information:
Additional context
This is clearly a tiny bug, which can be avoided by running
xmake update
in a folder containing noxmake.lua
file, but it's better to know existing bugs even if fixing them is not a priority.The text was updated successfully, but these errors were encountered: