diff options
| author | ruki <[email protected]> | 2025-10-21 23:27:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-21 23:27:31 +0800 |
| commit | c8612e544795a03728c411a82d053a47e3be19df (patch) | |
| tree | 062cd9f7b97060002f6f9985b8e5d22074b5eda7 /xmake/core | |
| parent | 405221a5f79cda33cab7df2694a3ee818d188168 (diff) | |
sort build number in packagepackagever
Diffstat (limited to 'xmake/core')
| -rw-r--r-- | xmake/core/package/package.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 4e89c0cd7..80189425d 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1485,8 +1485,10 @@ end -- get versions function _instance:versions() if self._VERSIONS == nil then + -- we need to sort the build number in semver list + -- https://github.com/xmake-io/xmake/issues/6953 local versions = {} - for version, _ in pairs(self:_versions_list()) do + for version, _ in table.orderpairs(self:_versions_list()) do -- remove the url alias prefix if exists local pos = version:find(':', 1, true) if pos then |
