diff options
| author | ruki <[email protected]> | 2021-08-18 00:53:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-08-18 00:53:03 +0800 |
| commit | 723dca1ac294cccd66f5b3dd0661299fd197f476 (patch) | |
| tree | fdcce708c72ccf1ea8fc008573616fdf8bea3d9a /core/src/xmake | |
| parent | 00107046b0c8eb07185b24783b2d32114f9ed760 (diff) | |
improve version source
Diffstat (limited to 'core/src/xmake')
| -rw-r--r-- | core/src/xmake/semver/select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/semver/select.c b/core/src/xmake/semver/select.c index 221baf46d..6b2a13031 100644 --- a/core/src/xmake/semver/select.c +++ b/core/src/xmake/semver/select.c @@ -68,7 +68,7 @@ static tb_bool_t xm_semver_select_from_versions_tags1(lua_State* lua, tb_int_t f lua_pushstring(lua, top.raw); lua_setfield(lua, -2, "version"); - lua_pushstring(lua, fromidx == 2? "versions" : "tags"); + lua_pushstring(lua, fromidx == 2? "version" : "tag"); lua_setfield(lua, -2, "source"); // exit the popped semver @@ -92,7 +92,7 @@ static tb_bool_t xm_semver_select_from_versions_tags2(lua_State* lua, tb_int_t f lua_createtable(lua, 0, 2); lua_pushstring(lua, source_str); lua_setfield(lua, -2, "version"); - lua_pushstring(lua, fromidx == 2? "versions" : "tags"); + lua_pushstring(lua, fromidx == 2? "version" : "tag"); lua_setfield(lua, -2, "source"); return tb_true; } @@ -162,7 +162,7 @@ static tb_bool_t xm_semver_select_latest_from_versions_tags(lua_State* lua, tb_i lua_pushstring(lua, top.raw); lua_setfield(lua, -2, "version"); - lua_pushstring(lua, fromidx == 2? "versions" : "tags"); + lua_pushstring(lua, fromidx == 2? "version" : "tag"); lua_setfield(lua, -2, "source"); // exit the popped semver |
