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

Java JAR contains native library twice #314

Open
2 tasks done
ccjernigan opened this issue Nov 17, 2023 · 1 comment
Open
2 tasks done

Java JAR contains native library twice #314

ccjernigan opened this issue Nov 17, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers invalid This doesn't seem right

Comments

@ccjernigan
Copy link

Describe the bug

There are two copies of the libusearch.so in the JAR file. This shouldn't break anything, but it would cause the JAR to be larger than it should be.

shasum -a 256 libusearch.so
0eed2c593261e727b31e83b75323de927959b4bdf36d3d48c7ce2007e018674c libusearch.so

shasum -a 256 shared/libusearch.so
0eed2c593261e727b31e83b75323de927959b4bdf36d3d48c7ce2007e018674c shared/libusearch.so

image

Steps to reproduce

  1. Download the 2.8.12 JAR from Maven central
  2. Unzip the JAR
  3. Inspect the JAR contents

Expected behavior

Jar contains a single

USearch version

2.8.12

Operating System

n/a

Hardware architecture

Arm

Which interface are you using?

Other bindings

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ccjernigan ccjernigan added bug Something isn't working invalid This doesn't seem right labels Nov 17, 2023
@ashvardanian
Copy link
Contributor

Hey @ccjernigan! Thank you for spotting the issue! Any chance you know how to fix it? I'm only the basics of using Java and Bazel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants