ScoopInstaller / Scoop

A command-line installer for Windows.

Home Page:https://scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] `Scoop export` consistent order of objects

seapat opened this issue · comments

Feature Request

Is your feature request related to a problem? Please describe.

The order of top-level objects ("apps", "buckets", "config") in the generated json changes with each export, which makes it annoying to put that file under git.

(Note: the content of each array seems to be consistent, only the order in which they appear changes)

Describe the solution you'd like

Ensure a consistent order of the generated json. The easy solution would be to just sort before returning, that might add some insignificant overhead.

Describe alternatives you've considered

I could sort the file myself, but I think this would make sense to be added to scoop itself.

commented

Just wanted to add that while the order of the apps seems consistent, the order of the properties for each app also changes, which pollutes the diff view:

image