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

Stable emit of plugins.json, so diffs are more readable #404

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

cspotcode
Copy link
Contributor

@cspotcode cspotcode commented Oct 15, 2024

Disclaimer: I haven't tested this locally, but the change was so tiny, figured I should propose it as-is.

I noticed that the diffs on plugins.json are unreadable because the ordering of plugins changes every time.

As a plugin author, it would be nice to "git blame" the version number of my plugins to see when they were updated automatically by the script. By ensuring the plugins.json always emit in the same order, we clean up the diffs.


Example:
Before, HelloWorldNodeJS is on line 2768. After it's on line 2.
7e5550f#diff-18d7f9b905f83805c42db6d239a7fb0207d4b32193202eb13ba077caed424c3cR395

Copy link
Member

@jjw24 jjw24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@jjw24 jjw24 merged commit 942426a into Flow-Launcher:plugin_api_v2 Oct 16, 2024
5 checks passed
@jjw24 jjw24 added the bug Something isn't working label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants