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

vfox install golang失败 #8

Closed
zoze0 opened this issue Apr 1, 2024 · 6 comments
Closed

vfox install golang失败 #8

zoze0 opened this issue Apr 1, 2024 · 6 comments

Comments

@zoze0
Copy link

zoze0 commented Apr 1, 2024

➜  ~ vfox install golang
plugin [PreInstall] method error: no version number provided
@jan-bar
Copy link

jan-bar commented Apr 1, 2024

You should use vfox i golang@1.22.1

or

vfox search golang to select version

@bytemain
Copy link
Member

bytemain commented Apr 2, 2024

@jan-bar @aooohan how about we provide a prompt:

> no version number provided, found latest version: 1.21.0, would you like to install it (y/n)?

@aooohan
Copy link
Member

aooohan commented Apr 2, 2024

@jan-bar @aooohan how about we provide a prompt:

> no version number provided, found latest version: 1.21.0, would you like to install it (y/n)?

I think it's pretty good, but maybe it requires the plugin to sort the return of Available hook? How else would we know what the latest version is?

@zoze0
Copy link
Author

zoze0 commented Apr 2, 2024

Thanks, It works.

But using the latest version by default might be even smoother (just like sdkman,I've used it for a long time)

@zoze0
Copy link
Author

zoze0 commented Apr 2, 2024

或者是install指定版本时,安装对应版本
install未指定版本时,直接运行search结果,然后提供用户选择安装如何?省去额外search一次

~ vfox install golang
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

@zoze0 zoze0 reopened this Apr 2, 2024
@aooohan
Copy link
Member

aooohan commented Apr 3, 2024

或者是install指定版本时,安装对应版本 install未指定版本时,直接运行search结果,然后提供用户选择安装如何?省去额外search一次

#8 (comment) 说的是一个意思, 应该放到vfox上去做.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants