This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Cannot run test:interop
#2700
Closed
Description
- Version:
js-ipfs version: 0.40.0-
Repo version: 7
System version: x64/linux
Node.js version: v11.15.0 - Platform: Linux 4.15.0-72-generic jsipfs block http-api and cli #81-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
- Subsystem: webui
Type: Bug
Severity: Low
Description:
Ipfs interop test cannot be executed due to a dependency mismatch multicodec
. After a quick research I realized the package ipfs-bitswap:~0.26.2
is using an outdated version of multicodec:~0.5.7
which removed the file multicodec/src/name-table
. There is an open PR to sort this issue.
Steps to reproduce the error:
- Fetch
master
branch - npm install
- Execute
test:interop
as follow:
➜ js-ipfs git:(master) npm run test:interop
> ipfs@0.40.0 test:interop /home/ggarrido/projects/js-ipfs
> IPFS_JS_EXEC=$PWD/src/cli/bin.js ipfs-interop
> ipfs-interop@0.1.1 test /home/ggarrido/projects/js-ipfs/node_modules/ipfs-interop
> cross-env IPFS_REUSEPORT=false aegir test
superagent: Enable experimental feature http2
Test Node.js
Warning: Cannot find any files matching pattern "test/**/*.spec.js"
superagent: Enable experimental feature http2
/home/ggarrido/projects/js-ipfs/node_modules/mocha/node_modules/yargs/yargs.js:1163
else throw err
^
Error: Cannot find module 'multicodec/src/name-table'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
at Function.Module._load (internal/modules/cjs/loader.js:591:27)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object.<anonymous> (/home/ggarrido/projects/js-ipfs/node_modules/ipfs/node_modules/ipfs-bitswap/src/types/message/index.js:10:19)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
How to sort it out
IMHO there are two alternatives:
- Wait for
js-ipfs-bitswap
the latest PR to come through (8 days old today) - Downgrade
multicodec
to version 0.5.6 before required file was removed
Metadata
Metadata
Assignees
Labels
No labels