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] 支持检测当前系统使用的 libc 信息并添加到 foojay 的请求参数中 #15

Open
bytemain opened this issue Apr 28, 2024 · 2 comments

Comments

@bytemain
Copy link
Member

请求 https://api.foojay.io/disco/v3.0/packages/jdks 的时候 lib_c_type 参数现在默认为 glibc (#14)

https://api.foojay.io/disco/v3.0/packages/jdks?version=17.0.11%2B9&distribution=temurin&architecture=amd64&archive_type=tar.gz&operating_system=linux&release_status=ga&latest=available&lib_c_type=glibc

在 alpine 等系统上,它们使用的是 musl,那么参数就要变:

https://api.foojay.io/disco/v3.0/packages/jdks?version=17.0.11%2B9&distribution=temurin&architecture=amd64&archive_type=tar.gz&operating_system=linux&release_status=ga&latest=available&lib_c_type=musl
@bytemain
Copy link
Member Author

js 的实现:https://github.com/lovell/detect-libc

@herouu
Copy link
Contributor

herouu commented Apr 30, 2024

js 的实现:https://github.com/lovell/detect-libc

vfox可能还不支持alpine,感觉最好的方式是vfox install 的时候加一个参数

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

2 participants