From 55372d21fccf832aed048a74060ecc0555e80d7d Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 17 Apr 2026 11:45:47 +0200 Subject: [PATCH] fix(clickhouse): delete yarn.lock entirely to bypass broken @types/lucene alias Yarn Berry caches resolution descriptors in yarn.lock in a multi-line block format that sed line-deletion cannot properly handle. The @types/hyperdx__lucene -> npm:@types/lucene alias persists across all partial cleanup attempts. Deleting yarn.lock forces a fresh resolution from package.json only, which is safe for a build-from-source install. --- install/clickhouse-install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install/clickhouse-install.sh b/install/clickhouse-install.sh index b672e390..e67c6eb5 100644 --- a/install/clickhouse-install.sh +++ b/install/clickhouse-install.sh @@ -211,10 +211,8 @@ EOF msg_info "Building HyperDX" # Remove broken devDependency (@types/lucene does not exist on npm) - node -e "const fs=require('fs'),p=JSON.parse(fs.readFileSync('packages/app/package.json','utf8'));delete p.devDependencies['@types/hyperdx__lucene'];if(p.resolutions) delete p.resolutions['@types/hyperdx__lucene'];fs.writeFileSync('packages/app/package.json',JSON.stringify(p,null,2));" - sed -i '/@types\/hyperdx__lucene/d' yarn.lock - sed -i '/@types\/lucene/d' yarn.lock - rm -f .yarn/install-state.gz + node -e "const fs=require('fs'),p=JSON.parse(fs.readFileSync('packages/app/package.json','utf8'));delete p.devDependencies['@types/hyperdx__lucene'];fs.writeFileSync('packages/app/package.json',JSON.stringify(p,null,2));" + rm -f yarn.lock .yarn/install-state.gz $STD yarn install $STD yarn workspace @hyperdx/common-utils run build $STD yarn workspace @hyperdx/api run build