diff options
| author | ruki <[email protected]> | 2025-10-21 16:40:22 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-21 16:40:22 +0800 |
| commit | a2e6edc875bc33b28c7d2d14f787b1e4ea59e26a (patch) | |
| tree | e2ff4186d9cf16c69f6478ebfcbb8269de2d3b93 | |
| parent | 241acfc54ce168a8cc0a16d24dfa6fee34466d88 (diff) | |
| parent | c8612e544795a03728c411a82d053a47e3be19df (diff) | |
Merge pull request #6955 from xmake-io/packagever
sort build number in package
| -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 |
