Skip to content

xmlrpc dependency on a github repo #135

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
rudicus opened this issue Nov 18, 2019 · 6 comments
Closed

xmlrpc dependency on a github repo #135

rudicus opened this issue Nov 18, 2019 · 6 comments

Comments

@rudicus
Copy link

rudicus commented Nov 18, 2019

Hey Chris,

Our buddy Neil is trying to setup npm in our CI. We are having an issue where npm fails because it tries to download a github repo (and Neil doesn't want git installed on our build slaves). We tracked it down to rosnode.js and it's dependency on a custom fork of xmlrpc (chfritz/node-xmlrpc)

Seems to sort of be related to:
#127

Is there a reason the node-xmlrpc can't be made into a new NPM package and published?

We want to be be able to do full repeatable builds without depending on external git connectivity.

Thanks,

Matt

@realtime-neil
Copy link

There's no reason node-xmlrpc can't be published to the npm registry. Even this idiot managed to do it: https://www.npmjs.com/package/node-xmlrpc/v/1.3.3

@chfritz
Copy link
Contributor

chfritz commented Nov 18, 2019

Is there a reason the node-xmlrpc can't be made into a new NPM package and published?

I think you know the answer to that question, and you could create such an npm package and then create a branch of rosnodejs where you depend on that instead.

However I think the right solution would be for baalexander/node-xmlrpc#132 to get merged and a new version of node-xmlrpc to be published. Unfortunately that is not under the control of Chris or myself.

BTW, I thought that npm pulls github dependencies via HTTPs, not ssh/git. So it's hardly any different from other npm registry downloads.

@realtime-neil
Copy link

@chfritz it's different in that I can install ca-certificates and expect it to Just Work(tm) without installing ssh, collecting host keys, configuring ssh options, and/or installing git. Insofar as I know, pulling packages from a npm registry does not require any of those host manipulations.

@rudicus
Copy link
Author

rudicus commented Nov 18, 2019

@chfritz - thanks for the response and work on rosnode.js.

Yes, we have done that. (hence the https://www.npmjs.com/package/node-xmlrpc/v/1.3.3) I just hate to split the eco system even more than it already is. Every time a fork is made for one tiny two line change I die a little inside ;)

In the interim we'll fork both projects and republish ourselves as you mentioned (unless you guys want to switch to the fork of xmlrpc we created)

@chris-smith
Copy link
Collaborator

Yeah I'm not a big fan of forking/republishing xmlrpc if we can avoid it. It's unclear to me how much choice we have if we don't want a GitHub dependency inside the package.json though. And getting multiple reports about this issue is a stronger indicator that we should actually do something about it...

@chris-smith
Copy link
Collaborator

This was addressed in #159 but has not been released.

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

No branches or pull requests

4 participants