Skip to content

Conversation

littledivy
Copy link
Member

Requires full --allow-ffi

Fixes #29030

@littledivy littledivy requested a review from bartlomieju April 26, 2025 10:37
));

if allow_extension {
perms.check_ffi_all()?;
Copy link
Member

Choose a reason for hiding this comment

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

Why is there no API name here in case perm check fails?

Copy link
Member Author

Choose a reason for hiding this comment

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

Doesnt seem to be the part of the the FFI perms API.

fn() {
// skip the test if the extension is not found
try {
Deno.statSync(extensionPath);
Copy link
Member

Choose a reason for hiding this comment

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

Won't this cause the test to always succeed if something goes wrong?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is like tests/ffi so not ran directly using deno test. With cargo t -p sqlite_extension_test the extension is always built.

@littledivy littledivy enabled auto-merge (squash) April 29, 2025 11:58
@littledivy littledivy merged commit 81a4f9e into denoland:main Apr 29, 2025
18 checks passed
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

Successfully merging this pull request may close these issues.

node:sqlite unable to load extensions
2 participants