Greenkeeper: Always up-to-date npm dependencies
greenkeeper.io
Greenkeeper: Always up-to-date npm dependencies
1–10 of 22 posts
Re: Greenkeeper: Always up-to-date npm dependencies
#2So far everyone has convinced me away from committing node_modules to the repo or doing an npm shrinkwrap, but I would love seeing a future with more people pinning dependencies and using this to update.
Re: Greenkeeper: Always up-to-date npm dependencies
#3This has been my primary annoyance working in node.js, dependencies automatically updating and breaking our code. So far everyone has convinced me away from committing node_modules to the repo or doing an npm shrinkwrap, but I would love seeing a future with more people pinning dependencies and using this to update.
The one minor issue I've still had with automatic dependency upgrades is the extremely rare case where a package maintainer actually pushes a broken package version. In those cases our tests catch it but I have to temporarily pin that specific package on the previous version until the maintainer is able to deprecate the broken package version and push a new one.
Re: Greenkeeper: Always up-to-date npm dependencies
#4This has been my primary annoyance working in node.js, dependencies automatically updating and breaking our code. So far everyone has convinced me away from committing node_modules to the repo or doing an npm shrinkwrap, but I would love seeing a future with more people pinning dependencies and using this to update.
If you have sufficient test coverage and a proper merging and deployment flow then package upgrades that break your code will be caught, and you'll have a chance to adjust your code in response to the package changes. The one minor issue I've still had with automatic dependency upgrades is the extremely rare case where a package maintainer actually pushes a broken package version. In those cases our tests catch it bu…
Re: Greenkeeper: Always up-to-date npm dependencies
#5This has been my primary annoyance working in node.js, dependencies automatically updating and breaking our code. So far everyone has convinced me away from committing node_modules to the repo or doing an npm shrinkwrap, but I would love seeing a future with more people pinning dependencies and using this to update.
In addition, we could do things like pro-active issue-opening. Say Underscore releases a new version and Ember uses it, gets a Greenkeeper dependency bump, and we see its Travis fails, we can open an issue on Underscore to say they broke Ember (all opt-in, of course).
Re: Greenkeeper: Always up-to-date npm dependencies
#6Let computers do the chores for us :)
Re: Greenkeeper: Always up-to-date npm dependencies
#7This has been my primary annoyance working in node.js, dependencies automatically updating and breaking our code. So far everyone has convinced me away from committing node_modules to the repo or doing an npm shrinkwrap, but I would love seeing a future with more people pinning dependencies and using this to update.
npm install --save --save-exactRe: Greenkeeper: Always up-to-date npm dependencies
#8You simply cannot auto upgrade dependencies. Period. On an application running in production with development spanning over a couple of months this will break a lot of stuff.
For that to happen, all package developers have to follow semantic versioning and make sure they never break API with minor updates, but that's hard to achieve when you have so many developers.
Updating packages is unfortunately a manual process that you have to go through, you have to pin, upgrade, run tests, rinse and repeat.
I would love a notification when an upgrade is available, whenever a package is released, that'd be good, but still, the upgrade process on my side would be manual.
Re: Greenkeeper: Always up-to-date npm dependencies
#9We’re super happy for any feedback :)
Re: Greenkeeper: Always up-to-date npm dependencies
#10This has been my primary annoyance working in node.js, dependencies automatically updating and breaking our code. So far everyone has convinced me away from committing node_modules to the repo or doing an npm shrinkwrap, but I would love seeing a future with more people pinning dependencies and using this to update.
If you have sufficient test coverage and a proper merging and deployment flow then package upgrades that break your code will be caught, and you'll have a chance to adjust your code in response to the package changes. The one minor issue I've still had with automatic dependency upgrades is the extremely rare case where a package maintainer actually pushes a broken package version. In those cases our tests catch it bu…