summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/package/package.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index db943815a..da2544d08 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -994,7 +994,9 @@ function _instance:manifest_save()
manifest.mode = self:mode()
manifest.configs = self:configs()
manifest.envs = self:_rawenvs()
- manifest.pathenvs = self:_pathenvs():to_array()
+
+ -- ensure pathenvs are written deterministically
+ manifest.pathenvs = table.to_array(self:_pathenvs():orderitems())
-- save enabled library deps
if self:librarydeps() then