Skip to content
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

chore: update ipfs-http-client peer dep #41

Merged
merged 8 commits into from
Oct 21, 2020
Merged

Conversation

achingbrain
Copy link
Member

Fixes this sort of error:

npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/ipfs-http-client
npm ERR!   peer ipfs-http-client@"^46.0.0" from [email protected]
npm ERR!   node_modules/libp2p-delegated-peer-routing
npm ERR!     libp2p-delegated-peer-routing@"^0.7.0" from the root project

Fixes this sort of error:

```
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/ipfs-http-client
npm ERR!   peer ipfs-http-client@"^46.0.0" from [email protected]
npm ERR!   node_modules/libp2p-delegated-content-routing
npm ERR!     libp2p-delegated-content-routing@"^0.7.0" from the root project
```
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI has some timeout failures

test/index.spec.js Outdated Show resolved Hide resolved
@jacobheun
Copy link
Contributor

Ah, looks like CI has node 15 now, likely causing the failures.

@achingbrain
Copy link
Member Author

achingbrain commented Oct 21, 2020

What fun: ai/nanoid#239

What's happening here is ipfsd-ctl starts a node and randomly generates a repo path using nanoid. The tests spawn a couple of extra nodes that should use each other to bootstrap, but nanoid generates the same 'random' repo path as the first node, so the new nodes inherit the configuration of the original node which has no bootstrappers and the test fails.

@achingbrain
Copy link
Member Author

Should be fixed in node 15.0.1 - nodejs/node@f7abd6a

const node = await factory.spawn({
// Lock down the nodes so testing can be deterministic
ipfsOptions: {
config: {
Bootstrap: boostrap,
Discovery: {
MDNS: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MDNS is disabled already when ipfsd is passed the test: true config option

@@ -14,20 +14,16 @@ const factory = createFactory({
ipfsHttpModule: require('ipfs-http-client'),
ipfsBin: isNode ? require('go-ipfs').path() : undefined,
test: true,
disposable: true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should really clean up after ourselves

Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ci failures are due to the recent Node 15 release, we can resolve those in a subsequent PR.

@jacobheun jacobheun merged commit 3ff6b8f into master Oct 21, 2020
@achingbrain achingbrain deleted the chore/update-peer-dep branch October 21, 2020 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants