fix: a warning should be printed when the store is locked

ref pnpm/pnpm#946
This commit is contained in:
Zoltan Kochan
2018-08-05 20:57:37 +03:00
parent f25c2bae94
commit 2ecefb4f91

View File

@@ -45,6 +45,7 @@ export default async function (
? await lock(initOpts.store, {
locks: initOpts.locks,
stale: initOpts.lockStaleDuration || 60 * 1000, // 1 minute,
whenLocked: () => storeLogger.warn(`waiting for the store at "${initOpts.store}" to be unlocked...`),
})
: () => Promise.resolve(undefined)