Skip to content

fix: test external modules that have transitive dep on ipfs #455

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

Closed

Conversation

achingbrain
Copy link
Member

Goes some way to address ipfs/js-ipfs#2542 in that it changes our definition of how a module 'depends' on IPFS.

Previously it had to be in your package.json. Now If it's in your node_modules folder, it'll get upgraded to the current release we are testing.

This means if we're testing module A and A has a depdendency graph like A -> B -> C -> ipfs, as long as ipfs has been hoisted to the the top level node_modules folder, we'll swap it out with the new version we're trying to release.

It also dedupes ipfs and ipfs-http-client in the dep tree so we can be sure we're testing against our rc, though this may cause problems where intermediate deps need updating, but at least the need for them to be updated will be visible.

Goes some way to address ipfs/js-ipfs#2542 in that it changes our
definition of how a module 'depends' on IPFS.  If it's in your
`node_modules` folder, it'll get upgrade to the current release we
are testing.

This means if we're testing module `A` and `A` has a depdendency
graph like `A -> B -> C -> ipfs`, as long as `ipfs` has been hoisted
to the the top level `node_modules` folder, we'll swap it out with
the new version we're trying to release.

It also dedupes `ipfs` and `ipfs-http-client` in the dep tree so
we can be sure we're testing against our `rc`, though this may
cause problems where intermediate deps need updating, but at least
the need for them to be updated will  be visible.
@hugomrdias
Copy link
Member

We should only test direct dependents !!

@achingbrain
Copy link
Member Author

We should only test direct dependents !!

I agree, and am more than happy to have this PR closed without it being merged (see my comments on ipfs/js-ipfs#2542) because doing it this way doesn't really guarantee anything about the modules we test.

@hugomrdias
Copy link
Member

Closing this, feel free to re-open if you think we should revisit this.

@hugomrdias hugomrdias closed this Dec 11, 2019
@achingbrain achingbrain deleted the test-externals-with-transitive-dependency-on-ipfs branch December 11, 2019 19:43
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