-
Notifications
You must be signed in to change notification settings - Fork 62
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
go-ipfs
is required from the top-level module
#20
Comments
What happens when we swap out requireResolve for https://github.com/substack/node-resolve ? |
It seems |
Hrmm... My only concern is that peerDependencies no longer install with npm3. Could |
It looks like this was already done, but kinda broken maybe? ipfs/npm-kubo#2 I could be totally off though! |
|
Which module is this occurring in? (and with what version of npm?) |
I think this is just a problem with |
@mappum did the upstream npm-go-ipfs changes I put in fix this issue? |
It looks like this is still grabbing the older version of npm-go-ipfs. @jbenet How come you didn't release that update as a patch? (also what is with the dash in the version of npm-go-ipfs? It seems to be breaking range prefixes e.g. ^) |
I think once the upstream changes are pulled it we should be good to go. Tested on npm2 and 3: #21 |
Woo! Thanks @bcomnes |
@bcomnes i want the version of the " ideally we would never have to patch it, but it's there because of updates to the "go-ipfs module" that come without a go-ipfs update. make sense? |
@jbenet We could automate that using the That is actually pretty useful, I've had that problem when maintaining forks of modules and not wanting the versions to diverge. We could make a module that contains the script and that automatically adds itself to |
I figured there was a reason, just wasn't sure. Thanks for the explanation! Also just realized modules below 1.0.0 (eg 0.5.0) disable npm semver range updates as well: http://semver.npmjs.com/ |
@mappum SGTM. want to PR it up to npm-go-ipfs ? |
When the
ipfsd-ctl
package is installed and required by another module, the following error is given:This happens because the
go-ipfs
dependency gets loaded as a direct dependency of the top-level module, not as a dependency ofipfsd-ctl
. So even thoughnpm install
installsgo-ipfs
innode_modules/ipfsd-ctl/node_modules/go-ipfs
, theipfsd-ctl
code tries to require it fromnode_modules/go-ipfs
.If this is actually the intended behavior, the README should tell the user to also install
go-ipfs
, andgo-ipfs
should be a peer dependency rather than a direct dependency.The text was updated successfully, but these errors were encountered: