Skip to content

Trust @matrix-org/matrix-sdk-crypto-nodejs for postinstall#52

Open
strk-ai-agent wants to merge 1 commit into
ominiverdi:mainfrom
strk-ai-agent:trusted-dependencies
Open

Trust @matrix-org/matrix-sdk-crypto-nodejs for postinstall#52
strk-ai-agent wants to merge 1 commit into
ominiverdi:mainfrom
strk-ai-agent:trusted-dependencies

Conversation

@strk-ai-agent

Copy link
Copy Markdown
Contributor

Bun never runs lifecycle scripts from dependencies by default.
The matrix-sdk-crypto-nodejs package relies on a postinstall hook
to download the platform-specific native Rust binary (.node file)
from GitHub releases. Without it, the crypto module fails at runtime
with 'Cannot find module ... -linux-x64-gnu'.

Adding the package to trustedDependencies lets bun execute its
postinstall, which fetches the correct binary for the current platform.

Closes #51

Bun never runs lifecycle scripts from dependencies by default.
The matrix-sdk-crypto-nodejs package relies on a postinstall hook
to download the platform-specific native Rust binary (.node file)
from GitHub releases. Without it, the crypto module fails at runtime
with 'Cannot find module ... -linux-x64-gnu'.

Adding the package to trustedDependencies lets bun execute its
postinstall, which fetches the correct binary for the current platform.

Closes ominiverdi#51

Assisted-By: big-pickle via opencode 1.17.20
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.

Cannot find module '@matrix-org/matrix-sdk-crypto-nodejs-linux-x64-gnu'

2 participants