Skip to content

Commit

Permalink
Fix issues with yarn berry stuck during yarn add
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd committed May 29, 2023
1 parent 71c0e95 commit 1df22ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/docker-ci-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1df22ce

Please sign in to comment.