-
Notifications
You must be signed in to change notification settings - Fork 975
Lock npm versions #8283
Comments
Resolves brave#8283 Auditors: @bsclifton Test Plan: - test passing
Let's consider using greenkeeper #1701 |
@luixxiul I like it, let me try it out |
an Alternative we can consider too: shrinkwrap @diracdeltas put together PR #7795 which I didn't feel comfortable accepting (yet) because I'm unfamiliar with shrinkwrap / am not sure how the update process would look like |
@bsclifton personally I prefer automated things, so this greenkeeper will force us to be up to date 😃 |
Greenkeeper will only make sense after we have a consistently passing CI otherwise things will 'magically break' and you will be hunting for a long time to figure out why. |
I think we should lock NPM versions, but I don't think we should be updating the lock to the latest version of every package with every commit/PR. We tried doing that for brave/sync (which has far fewer dependencies) and it soon became difficult to track down what bugs were due to a dependency update. It might be ok updating the lockfile once per release, as long as there is enough time for testers to catch bugs that are due to dependency updates. If we lock down versions with shrinkwrap or Yarn, I can re-enable Travis dependency caching. |
I'm thinking about the possibility of updating packages based on the release channels. eg
It could only cause chaos, though. Just my idea. |
otherwise we could update deprecated packages at least. |
@NejcZdovc what do you think about accepting #7795 in lieu of this PR? |
@bsclifton @diracdeltas correct me if I am wrong, but doesn't this only apply when travis or our build pipe is using npm. When I as developer clone cc @bbondy |
@NejcZdovc my understanding based on https://docs.npmjs.com/cli/shrinkwrap is that shrinkwrap is used for npm install. |
Closing in favor of #7795 |
@diracdeltas that is correct- |
On the latest |
We can for now, but as soon travis supports npm 5 we will use it for caching |
Re-opening for npm5 |
Auditors: @evq Test Plan: 1. Open about:preferences#plugins 2. Make sure `Adobe` and `wiki` appears as anchor links 3. Open about:preferences#payments 4. Disable payments 5. Make sure `View the FAQ` appears as an anchor link
We've been using the lock files and these have worked out great 😄 👍 |
Describe the issue you encountered:
Lock all npm packages to the specific version, so that we are all working on the same dependencies.
In this issue I am NOT updating anything to the mayor version, just settings values that we get now if we run
npm i
We should update all dependencies with every release.
cc @bbondy @alexwykoff @bsclifton
The text was updated successfully, but these errors were encountered: