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

[Feature]: 可选择实现的 pin 命令 #271

Closed
devbean opened this issue May 14, 2024 · 2 comments
Closed

[Feature]: 可选择实现的 pin 命令 #271

devbean opened this issue May 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@devbean
Copy link

devbean commented May 14, 2024

1. Your usage scenarios?

Volta 提供了一种 pin 命令,可以在 package.json 中记录下本项目使用的 nodejs 的版本号。在切换不同的项目时,Volta 可以自动安装项目所需版本号,并且自动切换到对应的版本。

2. What is your expected outcome?

虽然 vfox 提供了项目级的版本管理能力,但如果能够自动切换会更方便,并且该版本号可以提交到 git 中,以便与他人共享。有没有可能实现类似的功能?初步设想,该功能应该在插件中可选择实现类似 pin 的命令。如果插件支持 pin 命令,比如 nodejs,则在 package.json 中进行记录(类型 volta 的实现);如果是 java,则可以看是否存在 pom.xml 或其它配置文件。

@devbean devbean added the enhancement New feature or request label May 14, 2024
@aooohan
Copy link
Member

aooohan commented May 14, 2024

vfox use -p nodejs 会在当前项目下生成.tool-versions文件, 会锁定版本的. 这个满足不了吗?

@devbean
Copy link
Author

devbean commented May 16, 2024

测试了一下,感觉应该是可以的,感谢回复

@devbean devbean closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants