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]: Automatically install SDKs #322

Open
koppor opened this issue Jul 7, 2024 · 1 comment
Open

[Feature]: Automatically install SDKs #322

koppor opened this issue Jul 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@koppor
Copy link

koppor commented Jul 7, 2024

1. Your usage scenarios?

I cd in a directory and I expect the JDK to be available.

2. What is your expected outcome?

vfox asking for JDK installation if not installed yet.


Examples that sdk is set if installed:

  • /tmp/x: 21
  • /tmp/y: 20
  • /c/git-repositories/jabref-all/javafxreproducer: last SDK, because 22 was not installed before.
$ cat /c/TEMP/x/.tool-versions
java 21.0.2+13

koppor@DESKTOP-KAK953S MINGW64 /c/TEMP/x (master)
$ java -version
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment (build 21.0.2+13-58)
OpenJDK 64-Bit Server VM (build 21.0.2+13-58, mixed mode, sharing)

$ cat /c/TEMP/y/.tool-versions
java 20.0.2+9

koppor@DESKTOP-KAK953S MINGW64 /c/TEMP/y
$ java -version
openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment (build 20.0.2+9-78)
OpenJDK 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)

koppor@DESKTOP-KAK953S MINGW64 /c/git-repositories/jabref-all/javafxreproducer (add-textfield-mwe)
$ cat .tool-versions
java 22.0.1+8-tem

koppor@DESKTOP-KAK953S MINGW64 /c/git-repositories/jabref-all/javafxreproducer (add-textfield-mwe)
$ java -version
openjdk version "20.0.2" 2023-07-18
OpenJDK Runtime Environment (build 20.0.2+9-78)
OpenJDK 64-Bit Server VM (build 20.0.2+9-78, mixed mode, sharing)
@koppor koppor added the enhancement New feature or request label Jul 7, 2024
@devbean
Copy link

devbean commented Jul 23, 2024

我也喜欢增加这个功能,这样就可以放到 CI 的脚本里面,在编译前自动安装并切换到所需要的依赖。我的 nodejs 项目,使用 volta 都是这样管理的。如果 vfox 能提供类似的功能就更好了。

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