tisonkun commented on code in PR #7087:
URL: https://github.com/apache/opendal/pull/7087#discussion_r2642753069
##########
bindings/java/src/main/java/org/apache/opendal/Environment.java:
##########
@@ -60,9 +62,35 @@ public enum Environment {
} else {
classifier.append("x86_64");
}
+ if (classifier.toString().startsWith("linux-") && isMusl(arch)) {
+ classifier.append("-musl");
+ }
INSTANCE.classifier = classifier.toString();
}
+ private static boolean isMusl(String osArch) {
+ final String loader = muslLoaderName(osArch);
+ if (loader == null) {
+ return false;
+ }
+ return Files.exists(Paths.get("/lib", loader)) ||
Files.exists(Paths.get("/usr/lib", loader));
Review Comment:
Did you test this line works?
I suspect that with bundled jar the file doesn't exist on `/lib` but in the
JAR package.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]