How to Version Plugins

你说的曾经没有我的故事 提交于 2019-12-12 02:08:57

问题


I wonder how to version plugins.

There are plenty ways of versioning a software products but they're all 1-dimensional.

Are there best practices for 2-dimensional versioning which indicates both compatibility to the main application and compatibility to the plugin API?


Eclipse for example proposed a versioning scheme for which every plugin uses semantic versioning. Additionally there's a rule to distinguish between development streams by increasing the service number by 100. This ends in versions like that:

  • Plugin version v1.0.8 for Eclipse v3.1
  • Plugin version v1.0.108 for Eclipse v3.2

This seems a bit fishy to me. Are there better ways?


回答1:


Why do you need to show the information about main application version in version of plugin? Does it help users to choose a suitable one?

I prefer put this information in a plugin name. For example, plugin-eclipse31-1.0.8 and plugin-eclipse32-1.0.8. You can put branch name (eclipse31 or eclipse32 in examples) in plugin version, to make things easier.



来源:https://stackoverflow.com/questions/30596390/how-to-version-plugins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!