From 76ab1d53e42a6147dca153fa157bc2a8d1be142a Mon Sep 17 00:00:00 2001 From: can1357 Date: Fri, 20 Feb 2026 12:41:24 +0100 Subject: [PATCH] fix(ci): add overrides for tarball install to resolve deps locally bun resolves transitive deps from the npm registry even when all packages are provided as local tarballs. Since 12.15.0 isn't published yet, these lookups fail. Adding overrides in package.json forces bun to resolve all @oh-my-pi/* packages from the local tarballs. --- scripts/install-tests/run-ci.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/install-tests/run-ci.sh b/scripts/install-tests/run-ci.sh index 879da6703..8ef4c1b6e 100755 --- a/scripts/install-tests/run-ci.sh +++ b/scripts/install-tests/run-ci.sh @@ -83,9 +83,25 @@ mkdir -p "$TARBALL_APP_DIR" ( cd "$TARBALL_APP_DIR" bun init -y >/dev/null + + # Write overrides so bun resolves inter-package deps from tarballs, not the registry + # (version 12.x.y hasn't been published yet when CI runs pre-release) + node -e " + const pkg = JSON.parse(require('fs').readFileSync('package.json', 'utf8')); + pkg.overrides = { + '@oh-my-pi/pi-utils': '$utils_tgz', + '@oh-my-pi/pi-natives': '$natives_tgz', + '@oh-my-pi/pi-ai': '$ai_tgz', + '@oh-my-pi/pi-agent-core': '$agent_tgz', + '@oh-my-pi/pi-tui': '$tui_tgz', + '@oh-my-pi/omp-stats': '$stats_tgz', + '@oh-my-pi/pi-coding-agent': '$coding_agent_tgz' + }; + require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2)); + " + bun add "$utils_tgz" "$natives_tgz" "$ai_tgz" "$agent_tgz" "$tui_tgz" "$stats_tgz" "$coding_agent_tgz" smoke_cli ./node_modules/.bin/omp -) echo "" echo "All install method smoke tests passed"