mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
pnpm.configHook: prevent hard linking on file systems without clone support
Fix #426636
(cherry picked from commit 3427c6a688)
This commit is contained in:
committed by
github-actions[bot]
parent
b9ee79241b
commit
4e55890f28
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user