greenkeeperio / greenkeeper-lockfile

:lock: Your lockfile, up to date, all the time
https://greenkeeper.io
182 stars 73 forks source link

Why is this not out of the box? #210

Closed developer239 closed 5 years ago

developer239 commented 5 years ago

I was so happy with greenkeeper when it updated enzyme and webpack for me. Then I found out that lock file is not updated?

What is the purpose of this library? Why doesn't greenkeeper update lock file automatically? This should be a no-brainer. 🙂

janl commented 5 years ago

There are numerous reasons for this:

  1. Greenkeeper currently has no infrastructure for calling exec() on an external binary which in turn downloads and potentially executes code from the internet. I hope it is clear that any errors here would be a severe security risk, which we do not take lightheartedly.

  2. Currently Greenkeeper also doesn't keep any project secrets, for npm, or GitHub. This again is a security conscious choice and e.g. supporting an integrated lockfile service that works with private npm packages, would require us to store an npm token. This is again a severe security concern that we don’t wanna do half-heartedly.

  3. Thirdly, everyone’s project is different and usually CI configurations already take all these differences into account. By making lockfile updates external, we take advantage of work already done.

We hope this explains why this is not really a “no brainer”. We take our service and the security of our users and customers very seriously, and as such, we don’t jump into these things without a lot of consideration.

All that said, we’re working on this as we speak, but there’s nothing to announce just yet.

developer239 commented 5 years ago

@janl Thanks for the clarification. I didn't realize that there are so many obstacle that you have to overcome.

janl commented 5 years ago

Thank you for understanding. We’ve just shipped the first iteration of native lockfile support: https://blog.greenkeeper.io/announcing-native-lockfile-support-85381a37a0d0

developer239 commented 5 years ago

@janl I mean now it is 1000 % more awesome. :) I have CI and CD set up so now I don't have to keep track of dependencies on my pet open source projects. Thank you.