From 1df22ce2941bb1ebc94ccf6e693e7fb680fc7bfa Mon Sep 17 00:00:00 2001 From: Tat Dat Duong Date: Tue, 30 May 2023 00:14:17 +0200 Subject: [PATCH] Fix issues with yarn berry stuck during yarn add --- scripts/docker-ci-entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/docker-ci-entrypoint.sh b/scripts/docker-ci-entrypoint.sh index 8ea6babc..d6433701 100644 --- a/scripts/docker-ci-entrypoint.sh +++ b/scripts/docker-ci-entrypoint.sh @@ -16,7 +16,10 @@ cp -r ../root/.yarn/!(berry|cache) ./.yarn cp ../root/yarn.lock ../root/.yarnrc.yml . # Replace the workspace dependency with the local copy, and install all others -yarn add ../langchain +# Avoid calling "yarn add ../langchain" as yarn berry does seem to hang for ~30s +# before installation actually occurs +sed -i 's/"langchain": "workspace:\*"/"langchain": "..\/langchain"/g' package.json +yarn install --no-immutable # Check the build command completes successfully yarn build