-
Notifications
You must be signed in to change notification settings - Fork 51
fix: fix lock for node 11 #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@hugomrdias it looks like we're not testing the |
we aren't actually using it :) Lines 197 to 204 in e028a9e
Do you want me to add a test to this private method ? |
We should just remove |
done |
Linting needs fixed, otherwise this looks good. |
@hugomrdias @jacobheun would you mind looking into this failure: 1) interface-ipfs-core over ipfs-api tests
.key.rename
"after all" hook:
Error: Lock is already released
at callback (node_modules/proper-lockfile/lib/lockfile.js:222:60)
at Promise (node_modules/proper-lockfile/lib/adapter.js:39:9)
at new Promise (<anonymous>)
at args (node_modules/proper-lockfile/lib/adapter.js:30:25)
at Object.close (node_modules/ipfs-repo/src/lock.js:25:9)
at IpfsRepo._closeLock (node_modules/ipfs-repo/src/index.js:186:28)
at series (node_modules/ipfs-repo/src/index.js:243:14)
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/async/internal/parallel.js:31:39
at replenish (node_modules/async/internal/eachOfLimit.js:66:17)
at iterateeCallback (node_modules/async/internal/eachOfLimit.js:50:17)
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/async/internal/onlyOnce.js:12:16
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/async/internal/parallel.js:36:13
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/async/internal/once.js:12:16
at iteratorCallback (node_modules/async/eachOf.js:60:13)
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/async/internal/onlyOnce.js:12:16
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/levelup/lib/levelup.js:114:16
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/abstract-leveldown/abstract-leveldown.js:67:5
at /tmp/jenkins/workspace/IPFS_js-ipfs_PR-1720-BOTRBRZAZU5M646NTADACC3XMRHJPUFDKJYCZI4VMLV72YC6IHHA@2/node_modules/leveldown/node_modules/abstract-leveldown/abstract-leveldown.js:67:5 |
On it |
ipfs/js-ipfs-repo#181 (comment) License: MIT Signed-off-by: Alan Shaw <[email protected]>
|
@Vishal1010101 see ipfs/js-ipfs#1700 (comment). If you still encounter an issue, please open a new issue. Thanks! |
This PR swaps lock-me for proper-lockfile which fixes compat with node 11 and also brings others improvements https://github.com/moxystudio/node-proper-lockfile.
ref: ipfs/js-ipfs#1700