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.85k stars 102 forks source link

[Feature]: `vfox` should remind user to update twice when update old format plugins. #231

Closed fangzhengjin closed 6 months ago

fangzhengjin commented 6 months ago

Version 0.4.1 OS macOS

Describe the bug first run vfox update -a

go -> 0.0.3 java -> 0.4.1 nodejs -> 0.0.6 python -> 0.0.4

second run vfox update -a go -> 0.1.1 nodejs -> 0.3.0 python -> 0.1.2

Screenshots[optional]

image
aooohan commented 6 months ago

As I mentioned in the 0.3.0 release, this is because the plugin system has been refactored.

As golang you mentioned in the picture, it's an old format plugin that was installed a long time ago. As you can see, it is still a single file golang.lua. So for this kind of installed plugin, the upgrade needs to be performed twice. But for the new format plugin, it only needs to be done once. This is not an issue.

fangzhengjin commented 6 months ago

As I mentioned in the 0.3.0 release, this is because the plugin system has been refactored.

As golang you mentioned in the picture, it's an old format plugin that was installed a long time ago. As you can see, it is still a single file golang.lua. So for this kind of installed plugin, the upgrade needs to be performed twice. But for the new format plugin, it only needs to be done once. This is not an issue.

For the old version of the plug -in, should vfox actively remind users that the user executes the plug -in upgrade command again? Or the program automatically re -executes the plug -in upgrade command?

aooohan commented 6 months ago

should vfox actively remind users that the user executes the plug -in upgrade command again?

Good idea, really should be reminded.