-
Notifications
You must be signed in to change notification settings - Fork 992
Check in lockfiles #1829
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
Check in lockfiles #1829
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1829 +/- ##
=======================================
Coverage 92.35% 92.35%
=======================================
Files 157 157
Lines 5104 5104
Branches 1085 1085
=======================================
Hits 4714 4714
Misses 390 390 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I think we should proceed with this further then. |
|
ok |
vmarchaud
left a comment
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.
💯
|
Seems like all maintainers are on board. Marked as ready for reviews and will leave for a day or so to ensure nobody has any complaints before merging. |
|
Are the PRs from renovate-bot taking care of updating lock files also? I miss also some hints for devs what they shall do if they add/remove/modify a dependency. I use lock files in some projects where I usually deleted lock file + node_modules folder and then run Finally I think https://github.com/open-telemetry/opentelemetry-js/blob/main/CONTRIBUTING.md#install-dependencies should be changed to |
| @@ -0,0 +1,20 @@ | |||
| { | |||
| "name": "backcompat-node10", | |||
| "version": "0.14.0", | |||
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.
Looks like they need a refresh
Yes. Per renovate docs https://docs.renovatebot.com/faq/
It works the same way, but the lock file is regenerated and possibly different. Dependencies cross-linked by lerna are omitted entirely from the package-lock. When
It would be |
| @@ -0,0 +1,9205 @@ | |||
| { | |||
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.
opentelemetry-plugin-fetch has been removed so we should not add a lockfile
* chore: release main * chore: sync package-lock.json --------- Co-authored-by: opentelemetrybot <[email protected]>
Creating this draft as a test to see how much faster CI would be with lock files checked inanswer: much much faster. CI is faster using lockfiles than when there is a cache hit
I am creating this PR as a point of discussion. Looking for input from @open-telemetry/javascript-approvers. Do you think we should check in lockfiles?
There is a good summary of the tradeoffs here: https://classic.yarnpkg.com/blog/2016/11/24/lockfiles-for-all/. It is about yarn, but applies to npm as well.
Discussion here: #1830