-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove npm dependency on Ubuntu Xenial #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully on Ubuntu Xenial and Bionic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this change. If npm is not needed for atom deployments, it should be also removed in all other envs (Bionic and CentOS) . @jraddaoui could you help us? Is npm
needed for atom deployments?
@scollazo, On Xenial
But it is different in Bionic:
|
Hi @scollazo, Yes, we use it to install LESS in the same file at the bottom and it's also needed for Binder ( |
Although, I think we could remove |
Thanks @jraddaoui , I'm about to test a new deploy on Bionic without |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mamedin your explanation makes sense about why are we installing npm on bionic but not on xenial, I didn't knew that.
LGTM!
912c9c6
to
8aef9b6
Compare
@jraddaoui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to be implicit than explicit, so instead of bringing nodejs as an npm dependecy, I would prefer to leave it listed in the role.
This all comes from my lack of knowledge about how npm was packaged in xenial/bionic, but @mamedin explained it.
The thing is: it doesn't matter. The same way you don't list all the dependencies for every package you install, I see no need to list Please let me know, @scollazo if you agree with me now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My concerns regarding explicit against implicit comes from following 12factor recomendations .
I personally prefer to have the "main" dependencies listed, instead of relying on them being brought as dependencies of other packages, but other than that, I don't have an strong opinion over doing it one way or the other, I leave it up to you.
As curiosity, CentOS nodejs package also carries npm ( https://github.com/artefactual-labs/ansible-atom/blob/master/tasks/deps-rh.yml#L42 )
Connects to #31