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

Plugins should specify how to update #454

Closed
dsherret opened this issue Jan 27, 2022 · 1 comment · Fixed by #457
Closed

Plugins should specify how to update #454

dsherret opened this issue Jan 27, 2022 · 1 comment · Fixed by #457
Labels
domain: cli Relates to the command line interface. domain: core Relates to the core library.

Comments

@dsherret
Copy link
Member

dsherret commented Jan 27, 2022

Right now only some plugins can update when running dprint config update by looking at https://plugins.dprint.dev/info.json — however, this is not ideal because it uses a centralized file. Instead probably each plugin should specify a url that provides the information about what the latest plugin url is. This would link to a url similar to info.json, but it would be only for the current plugin.

@dsherret
Copy link
Member Author

There is now a latest.json endpoint for the plugins on plugins.dprint.dev. For example:

These could be specified in an "updateUrl" on the plugin's PluginInfo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: cli Relates to the command line interface. domain: core Relates to the core library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant