Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Scoop export consistent order of objects #5862

Open
seapat opened this issue Apr 3, 2024 · 1 comment
Open

[Feature] Scoop export consistent order of objects #5862

seapat opened this issue Apr 3, 2024 · 1 comment

Comments

@seapat
Copy link

seapat commented Apr 3, 2024

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.

@IndyV
Copy link

IndyV commented Apr 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants