You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ ~ vfox install golang
plugin [PreInstall] method error: no version number provided
and we can provide a prompt:
➜ ~ vfox install golang
> no version number provided, do you want to search available versions and install it? (y/n)
y
Please select a version of golang [type to search]:
-> v1.22.1 (stable)
v1.21.8 (stable)
v1.22.0
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.21.1
v1.21.0
v1.22rc2
v1.22rc1
v1.21rc4
v1.21rc3
v1.21rc2
Press ↑/↓ to select and press ←/→ to page, and press Enter to confirm
I see that it is the existence of the version returned by the PreInstall that determines whether or not to display the available list. But it's possible that PreInstall has already thrown an error.
I now think it might be better to solve it in the following two ways:
If no version provided, we will pass latest as version to the plugin, and we must ask the plugin to implement the meaning of latest.
We still treat it as the latest and use the version first result from search. But we must ask the plugin to sort the Available results in descending order.
1. Your usage scenarios?
install golang by:
➜ ~ vfox install golang plugin [PreInstall] method error: no version number provided
and we can provide a prompt:
close: version-fox/vfox-nodejs#8
2. What is your expected outcome?
The text was updated successfully, but these errors were encountered: