This repository was archived by the owner on Jul 4, 2026. It is now read-only.
fix(whatsapp): switch baileys from git dep to npm release - #5
Closed
kingsleydon wants to merge 1 commit into
Closed
Conversation
The git-pinned baileys dependency requires cloning the full repo and running git dep preparation at install time, which takes 4+ minutes and times out in CVM environments (120s limit in hermes cli). Switch to the npm-published release (^7.0.0-rc.9) which installs in ~20 seconds via normal npm registry download. Also adds protobufjs override (>=7.5.5) to fix 3 critical vulnerabilities (GHSA-xq3m-2v4x-88gg: arbitrary code execution). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@whiskeysockets/baileysfrom git-pinned (WhiskeySockets/Baileys#01047de...) to npm release (^7.0.0-rc.9)protobufjsoverride (>=7.5.5) to fix 3 critical vulnerabilitiesProblem
The git dependency requires cloning the full Baileys repo + running
npm install --include=devfor git dep preparation. In CVM containers this takes 4+ minutes and exceeds the 120-second timeout inhermes whatsapp, making WhatsApp setup impossible.Result
Verified on two production deployments (k3s-prod4 and Phala CVM).
🤖 Generated with Claude Code