From 823b484497d4fa125584a8b278390c256bb1b8dd Mon Sep 17 00:00:00 2001 From: asepharyana Date: Sat, 1 Aug 2026 11:47:01 +0700 Subject: [PATCH] chore(gateway): pnpm 11 build-script approvals (allowBuilds) for native voice deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm 11.17 mengabaikan field pnpm.onlyBuiltDependencies di package.json. Native deps voice (@discordjs/opus, @lng2004/node-datachannel, zeromq, dll) tidak pernah kebangun di Nix store karena flake pnpmInstall pakai --ignore-scripts dan pnpm rebuild tanpa approval. Hasil: receiver/rekaman/ GoLive diam-diam tanpa decoder/encoder native. pnpm approve-builds --all menulis allowBuilds:true per package di pnpm-workspace.yaml (harus tracked — flake source cuma ikut file git). node-crc tetap gagal build (MSRV cargo:: check) tapi tidak pernah di-import di source — harmless. --- services/discord-gateway/pnpm-workspace.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 services/discord-gateway/pnpm-workspace.yaml diff --git a/services/discord-gateway/pnpm-workspace.yaml b/services/discord-gateway/pnpm-workspace.yaml new file mode 100644 index 0000000..58777e7 --- /dev/null +++ b/services/discord-gateway/pnpm-workspace.yaml @@ -0,0 +1,18 @@ +allowBuilds: + "@discordjs/opus": true + "@lng2004/node-datachannel": true + esbuild: true + node-av: true + node-crc: true + sharp: true + zeromq: true +# pnpm 11 requires build-script approvals here (the legacy `pnpm` field in +# package.json is ignored). Native voice deps need their postinstall build. +onlyBuiltDependencies: + - "@discordjs/opus" + - "@lng2004/node-datachannel" + - esbuild + - node-av + - node-crc + - sharp + - zeromq