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

fix: Depend on upstream jna instead of the bundled one #5529

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

blorente
Copy link
Collaborator

Checklist

  • I have filed an issue about this change and discussed potential changes with the maintainers.
  • I have received the approval from the maintainers to make this change.
  • This is not a stylistic, refactoring, or cleanup change.

Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.

Discussion thread for this change

Discovered while trying to set up CI for our internal mirror of the plugin.

Description of this change

We test cross-platform (from mac arm to linux x86, for instance). Most of the tests complained that they couldn't find the JNA library. As far as I can tell, we just rely on the JNA that comes bundled with the plugin SDK. However, that implicit dependency doesn't handle Bazel's platform definition.

Therefore, we add a dependency to proper jna upstream to be able to run the tests from any combination of platforms.

@github-actions github-actions bot added the awaiting-review Awaiting review from Bazel team on PRs label Oct 24, 2023
# so it fails on certain setups.
jvm_maven_import_external(
name = "jna",
artifact = "net.java.dev.jna:jna:5.13.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mai93 it's a new dependency added to this project. Can we ask security team whether it's ok to do so? No other issues apart from this one

@mai93 mai93 merged commit 7e8b804 into bazelbuild:master Oct 30, 2023
6 checks passed
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Oct 30, 2023
blorente pushed a commit to blorente/intellij that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

5 participants