version-fox / vfox

A cross-platform and extendable version manager with support for Java, Node.js, Flutter, .Net & more
https://vfox.lhan.me
Apache License 2.0
2.69k stars 95 forks source link

[BUG]: Wrong behavior about plugin alias and something to be improved #218

Closed yanecc closed 5 months ago

yanecc commented 5 months ago

Describe the bug

  1. 以相同别名安装不同插件后,会下载插件,但是安装失败 预期:不下载插件
    1. 以别名安装某插件后,可以直接安装或使用其他别名安装该插件;但是直接安装某插件以后,无法再用别名安装该插件 预期:以不同名称添加的插件应视作不同插件,只要别名不与已安装插件名称重复即可安装
    2. 对旧版本插件名称格式<category>/<plugin-name>的兼容仅对官方网址生效 预期:与网址无关,应对任何网址生效
aooohan commented 5 months ago

其他两条描述的没问题, 预期也是我想要的.

  1. 对旧版本插件名称格式<category>/<plugin-name>的兼容仅对官方网址生效 预期:与网址无关,应对任何网址生效

我没理解. 旧版vfox通过<category>/<plugin-name>名来添加插件, 是因为旧插件仓库有类别区分, 但是现在都按照类别拆分成独立仓库了. 没有与网址关联呀, 里面的url是指自定义插件路径. 自定义插件添加的时候不会出现<category>/<plugin-name>这样的名字. 所以只需要在不是添加自定义插件(也就是url为空)的时候才需要兼容旧版本的<category>/<plugin-name>格式.

aooohan commented 5 months ago

按照你现在的处理, 我觉得也不错. 弱化了插件自身的名字, 以插件索引仓库和用户输入的别名为准. 👍

aooohan commented 5 months ago

已处理, 感谢贡献!