[Backport release-25.05] pnpm.configHook: prevent hard linking on file systems without clone support (#429637)

This commit is contained in:
Sefa Eyeoglu
2025-07-31 21:36:53 +02:00
committed by GitHub

View File

@@ -36,6 +36,10 @@ pnpmConfigHook() {
pnpm config set store-dir "$STORE_PATH"
# Prevent hard linking on file systems without clone support.
# See: https://pnpm.io/settings#packageimportmethod
pnpm config set package-import-method clone-or-copy
if [[ -n "$pnpmWorkspace" ]]; then
echo "'pnpmWorkspace' is deprecated, please migrate to 'pnpmWorkspaces'."
exit 2