Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix(deploy): tolerate Supabase CLI binary download failure during install (#1379)

Brad Barbincdd6e58abdbb
diff --git a/package.json b/package.json
index 1309f1ad76..22525ecd89 100755
--- a/package.json
+++ b/package.json
@@ -113,7 +113,8 @@
"patchedDependencies": {
"@ai-sdk-tools/[email protected]": "patches/@[email protected]",
"@react-router/[email protected]": "patches/@[email protected]",
- "@vercel/[email protected]": "patches/@[email protected]"
+ "@vercel/[email protected]": "patches/@[email protected]",
}
}
}
diff --git a/patches/[email protected] b/patches/[email protected]
new file mode 100644
index 0000000000..d07ae81fde
--- /dev/null
+++ b/patches/[email protected]
@@ -0,0 +1,23 @@
+diff --git a/scripts/postinstall.js b/scripts/postinstall.js
+index 517617ffbe2341bc318bdfbc222837d303a7aaf2..a8a19ec0f0136c9d02704c66a0f3c1a504a10f43 100755
+--- a/scripts/postinstall.js
++++ b/scripts/postinstall.js
+@@ -177,4 +177,17 @@ async function main() {
+ console.info("Installed Supabase CLI successfully");
+ }
+
+-await main();
++// The Supabase CLI is a dev/CI tool (local `crbn migrate`, CI migrations) — it is
++// never used to build or run the ERP/MES apps. Downloading its binary from GitHub
++// during `pnpm install` must not be able to fail the install (e.g. the app deploy
++// image build, where the network to GitHub can flake with ECONNRESET). Warn and
++// continue instead of throwing so the binary is installed when reachable but its
++// absence never breaks an install that doesn't need it.
++try {
++ await main();
++} catch (err) {
++ console.warn(
++ "Skipping Supabase CLI binary install:",
++ err && err.message ? err.message : err
++ );
++}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 33722a20eb..d22e505414 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -297,6 +297,9 @@ patchedDependencies:
'@vercel/[email protected]':
hash: fdc988df95f5639f888c552079014d0e615cb4c762f8c25a16d43e4498e21a6a
path: patches/@[email protected]
+ hash: f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c
+ path: patches/[email protected]
importers:
@@ -380,7 +383,7 @@ importers:
version: 5.0.10
supabase:
specifier: 'catalog:'
- version: 2.89.0
+ version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
ts-morph:
specifier: 22.0.0
version: 22.0.0
@@ -700,7 +703,7 @@ importers:
'@react-router/remix-routes-option-adapter':
specifier: 'catalog:'
'@react-router/serve':
specifier: 'catalog:'
@@ -745,7 +748,7 @@ importers:
'@vercel/react-router':
specifier: 'catalog:'
'@visx/responsive':
specifier: 2.17.0
version: 2.17.0([email protected])
@@ -980,16 +983,16 @@ importers:
'@lingui/vite-plugin':
specifier: 'catalog:'
'@react-router/dev':
specifier: 'catalog:'
'@tailwindcss/typography':
specifier: 'catalog:'
version: 0.5.19([email protected])
'@tailwindcss/vite':
specifier: 'catalog:'
'@types/d3':
specifier: 7.4.3
version: 7.4.3
@@ -1031,7 +1034,7 @@ importers:
version: 4.1.5
supabase:
specifier: 'catalog:'
- version: 2.89.0
+ version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
tailwind-scrollbar:
specifier: 'catalog:'
@@ -1049,13 +1052,13 @@ importers:
version: 5.8.3
vite:
specifier: 'catalog:'
vite-plugin-babel-macros:
specifier: 'catalog:'
vitest:
specifier: 'catalog:'
apps/mes:
dependencies:
@@ -1298,7 +1301,7 @@ importers:
version: 4.6.9
supabase:
specifier: 'catalog:'
- version: 2.89.0
+ version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
tailwind-merge:
specifier: 'catalog:'
version: 3.3.0
@@ -1966,7 +1969,7 @@ importers:
version: 0.28.15
kysely-supabase:
specifier: 0.2.1
+ version: 0.2.1([email protected])([email protected](patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c))
nanoid:
specifier: 'catalog:'
version: 5.1.7
@@ -2009,7 +2012,7 @@ importers:
version: 5.0.10
supabase:
specifier: 'catalog:'
- version: 2.89.0
+ version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
tsup:
specifier: 'catalog:'
@@ -2272,7 +2275,7 @@ importers:
version: 4.6.9
supabase:
specifier: 'catalog:'
- version: 2.89.0
+ version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
tsup:
specifier: 'catalog:'
@@ -2564,7 +2567,7 @@ importers:
version: 4.6.9
supabase:
specifier: 'catalog:'
- version: 2.89.0
+ version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
tsup:
specifier: 'catalog:'
@@ -2592,7 +2595,7 @@ importers:
version: 5.8.3
vitest:
specifier: 'catalog:'
packages/kv:
dependencies:
@@ -2689,7 +2692,7 @@ importers:
version: 4.6.9
supabase:
specifier: 'catalog:'
- version: 2.89.0
+ version: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
zod:
specifier: 'catalog:'
version: 3.25.76
@@ -17147,7 +17150,7 @@ snapshots:
'@babel/traverse': 7.29.0
'@babel/types': 7.29.0
convert-source-map: 2.0.0
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
gensync: 1.0.0-beta.2
json5: 2.2.3
semver: 7.7.4
@@ -17167,7 +17170,7 @@ snapshots:
'@babel/types': 7.29.0
'@jridgewell/remapping': 2.3.5
convert-source-map: 2.0.0
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
gensync: 1.0.0-beta.2
json5: 2.2.3
semver: 7.7.4
@@ -17337,7 +17340,7 @@ snapshots:
'@babel/parser': 7.29.2
'@babel/template': 7.28.6
'@babel/types': 7.29.0
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
globals: 11.12.0
transitivePeerDependencies:
- supports-color
@@ -17350,7 +17353,7 @@ snapshots:
'@babel/parser': 7.29.2
'@babel/template': 7.28.6
'@babel/types': 7.29.0
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -18423,6 +18426,16 @@ snapshots:
transitivePeerDependencies:
- typescript
+ dependencies:
+ '@lingui/cli': 5.9.4([email protected])([email protected])
+ '@lingui/conf': 5.9.4([email protected])
+ transitivePeerDependencies:
+ - babel-plugin-macros
+ - supports-color
+ - typescript
+
dependencies:
'@lingui/cli': 5.9.4([email protected])([email protected])
@@ -18784,7 +18797,7 @@ snapshots:
dependencies:
'@oclif/core': 4.11.7
ansis: 3.17.0
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
npm: 11.17.0
npm-package-arg: 11.0.3
npm-run-path: 5.3.0
@@ -22151,6 +22164,56 @@ snapshots:
- tsx
- yaml
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/generator': 7.29.1
+ '@babel/parser': 7.29.2
+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])
+ '@babel/preset-typescript': 7.28.5(@babel/[email protected])
+ '@babel/traverse': 7.29.0
+ '@babel/types': 7.29.0
+ '@remix-run/node-fetch-server': 0.13.1
+ arg: 5.0.2
+ babel-dead-code-elimination: 1.0.12
+ chokidar: 4.0.3
+ dedent: 1.7.2([email protected])
+ es-module-lexer: 1.7.0
+ exit-hook: 2.2.1
+ isbot: 5.1.37
+ jsesc: 3.0.2
+ lodash: 4.17.21
+ p-map: 7.0.4
+ pathe: 1.1.2
+ picocolors: 1.1.1
+ pkg-types: 2.3.0
+ prettier: 3.8.1
+ react-refresh: 0.14.2
+ semver: 7.7.4
+ tinyglobby: 0.2.17
+ valibot: 1.3.1([email protected])
+ optionalDependencies:
+ typescript: 5.8.3
+ transitivePeerDependencies:
+ - '@types/node'
+ - babel-plugin-macros
+ - jiti
+ - less
+ - lightningcss
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - tsx
+ - yaml
+
dependencies:
'@babel/core': 7.29.0
@@ -22229,6 +22292,12 @@ snapshots:
optionalDependencies:
typescript: 5.8.3
+ dependencies:
+ optionalDependencies:
+ typescript: 5.8.3
+
dependencies:
@@ -23510,6 +23579,13 @@ snapshots:
postcss-selector-parser: 6.0.10
tailwindcss: 4.3.0
+ dependencies:
+ '@tailwindcss/node': 4.3.0
+ '@tailwindcss/oxide': 4.3.0
+ tailwindcss: 4.3.0
+
dependencies:
'@tailwindcss/node': 4.3.0
@@ -24377,6 +24453,16 @@ snapshots:
'@vercel/[email protected]': {}
+ dependencies:
+ '@vercel/static-config': 3.2.0
+ isbot: 5.1.37
+ react: 18.3.1
+ react-dom: 18.3.1([email protected])
+ ts-morph: 12.0.0
+
dependencies:
@@ -24992,7 +25078,7 @@ snapshots:
dependencies:
bytes: 3.1.2
content-type: 1.0.5
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
http-errors: 2.0.1
iconv-lite: 0.7.2
on-finished: 2.4.1
@@ -25873,7 +25959,7 @@ snapshots:
dependencies:
'@socket.io/component-emitter': 3.1.2
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
engine.io-parser: 5.2.3
ws: 8.21.0
xmlhttprequest-ssl: 2.1.2
@@ -25893,7 +25979,7 @@ snapshots:
base64id: 2.0.0
cookie: 0.7.2
cors: 2.8.6
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
engine.io-parser: 5.2.3
ws: 8.21.0
transitivePeerDependencies:
@@ -26310,7 +26396,7 @@ snapshots:
content-type: 1.0.5
cookie: 0.7.2
cookie-signature: 1.2.2
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
depd: 2.0.0
encodeurl: 2.0.0
escape-html: 1.0.3
@@ -26439,7 +26525,7 @@ snapshots:
dependencies:
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
encodeurl: 2.0.0
escape-html: 1.0.3
on-finished: 2.4.1
@@ -27005,14 +27091,14 @@ snapshots:
dependencies:
agent-base: 7.1.4
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
agent-base: 9.0.0
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -27125,7 +27211,7 @@ snapshots:
canonicalize: 1.0.8
chalk: 4.1.2
cross-fetch: 4.1.0([email protected])
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
hash.js: 1.1.7
json-stringify-safe: 5.0.1
ms: 2.1.3
@@ -27163,7 +27249,7 @@ snapshots:
canonicalize: 1.0.8
chalk: 4.1.2
cross-fetch: 4.1.0([email protected])
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
hash.js: 1.1.7
json-stringify-safe: 5.0.1
ms: 2.1.3
@@ -27225,7 +27311,7 @@ snapshots:
dependencies:
'@ioredis/commands': 1.5.1
cluster-key-slot: 1.1.2
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
denque: 2.1.0
lodash.defaults: 4.2.0
lodash.isarguments: 3.1.0
@@ -27603,10 +27689,10 @@ snapshots:
+ [email protected]([email protected])([email protected](patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)):
dependencies:
kysely: 0.28.15
- supabase: 2.89.0
+ supabase: 2.89.0(patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c)
@@ -28351,7 +28437,7 @@ snapshots:
dependencies:
'@types/debug': 4.1.13
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
decode-named-character-reference: 1.3.0
devlop: 1.1.0
micromark-core-commonmark: 2.0.3
@@ -29935,7 +30021,7 @@ snapshots:
dependencies:
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
module-details-from-path: 1.0.4
resolve: 1.22.11
transitivePeerDependencies:
@@ -29943,7 +30029,7 @@ snapshots:
dependencies:
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
module-details-from-path: 1.0.4
transitivePeerDependencies:
- supports-color
@@ -30060,7 +30146,7 @@ snapshots:
dependencies:
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
depd: 2.0.0
is-promise: 4.0.0
parseurl: 1.3.3
@@ -30168,7 +30254,7 @@ snapshots:
dependencies:
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
encodeurl: 2.0.0
escape-html: 1.0.3
etag: 1.8.1
@@ -30375,7 +30461,7 @@ snapshots:
dependencies:
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
ws: 8.21.0
transitivePeerDependencies:
- bufferutil
@@ -30396,7 +30482,7 @@ snapshots:
dependencies:
'@socket.io/component-emitter': 3.1.2
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
transitivePeerDependencies:
- supports-color
@@ -30405,7 +30491,7 @@ snapshots:
accepts: 1.3.8
base64id: 2.0.0
cors: 2.8.6
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
engine.io: 6.6.9
socket.io-adapter: 2.5.8
socket.io-parser: 4.2.6
@@ -30691,7 +30777,7 @@ snapshots:
tinyglobby: 0.2.17
ts-interface-checker: 0.1.13
+ [email protected](patch_hash=f278052dbb83b89896a8f742e486a879c8f00b1b22e188717aeb199b1f1a4b4c):
dependencies:
bin-links: 6.0.0
https-proxy-agent: 9.0.0
@@ -30868,7 +30954,7 @@ snapshots:
dependencies:
callsites: 3.1.0
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
is-observable: 2.1.0
observable-fns: 0.6.1
optionalDependencies:
@@ -31014,7 +31100,7 @@ snapshots:
cac: 6.7.14
chokidar: 4.0.3
consola: 3.4.2
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
esbuild: 0.27.7
fix-dts-default-cjs-exports: 1.0.1
joycon: 3.1.1
@@ -31042,7 +31128,7 @@ snapshots:
cac: 6.7.14
chokidar: 4.0.3
consola: 3.4.2
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
esbuild: 0.27.7
fix-dts-default-cjs-exports: 1.0.1
joycon: 3.1.1
@@ -31344,7 +31430,7 @@ snapshots:
dependencies:
cac: 6.7.14
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
es-module-lexer: 1.7.0
pathe: 2.0.3
@@ -31365,7 +31451,7 @@ snapshots:
dependencies:
cac: 6.7.14
- debug: 4.4.3([email protected])
+ debug: 4.4.3([email protected])
es-module-lexer: 1.7.0
pathe: 2.0.3
@@ -31394,6 +31480,17 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])
+ '@babel/plugin-syntax-typescript': 7.28.6(@babel/[email protected])
+ '@types/babel__core': 7.20.5
+ babel-plugin-macros: 3.1.0
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
'@babel/core': 7.29.0