Skip to content

Commit

Permalink
Merge pull request #3906 from calebkiage/sort-keys-in-manifest-files
Browse files Browse the repository at this point in the history
Sort package manifest keys on save for easier diffing when troubleshooting
  • Loading branch information
waruqi authored Jun 30, 2023
2 parents 83a2912 + 6edbeda commit 74aa851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/core/package/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ function _instance:manifest_save()
end

-- save manifest
local ok, errors = io.save(self:manifest_file(), manifest)
local ok, errors = io.save(self:manifest_file(), manifest, { orderkeys = true })
if not ok then
os.raise(errors)
end
Expand Down

0 comments on commit 74aa851

Please sign in to comment.