-
Notifications
You must be signed in to change notification settings - Fork 9
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
do not ignore package-lock.json #220
Conversation
the package-lockj.json is vital for the build reproducability. Without this what is used for the build is non deterministic (withouth actually hard locking all dependencies in package.json which is not the case here) this removes the ignore and checks in a package-lock.json that was created from building a clean checkout
Codecov Report
@@ Coverage Diff @@
## master #220 +/- ##
=========================================
Coverage 93.33% 93.33%
Complexity 9 9
=========================================
Files 2 2
Lines 15 15
=========================================
Hits 14 14
Misses 1 1 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This introduces changes in the local workspace just by building the project: index e85dcd1..385b18e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1260,9 +1260,9 @@
"dev": true
},
"node_modules/electron-to-chromium": {
- "version": "1.4.416",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.416.tgz",
- "integrity": "sha512-AUYh0XDTb2vrj0rj82jb3P9hHSyzQNdTPYWZIhPdCOui7/vpme7+HTE07BE5jwuqg/34TZ8ktlRz6GImJ4IXjA==",
+ "version": "1.4.417",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.417.tgz",
+ "integrity": "sha512-8rY8HdCxuSVY8wku3i/eDac4g1b4cSbruzocenrqBlzqruAZYHjQCHIjC66dLR9DXhEHTojsC4EjhZ8KmzwXqA==",
"dev": true
},
"node_modules/emoji-regex": {
@@ -4054,9 +4054,9 @@
}
},
"node_modules/path-scurry/node_modules/lru-cache": {
- "version": "9.1.1",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.1.tgz",
- "integrity": "sha512-65/Jky17UwSb0BuB9V+MyDpsOtXKmYwzhyl+cOa9XUiI4uV2Ouy/2voFP3+al0BjZbJgMBD8FojMpAf+Z+qn4A==",
+ "version": "9.1.2",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.2.tgz",
+ "integrity": "sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==",
"dev": true,
"engines": {
"node": "14 || >=16.14"
@@ -7352,9 +7352,9 @@
"dev": true
},
"electron-to-chromium": {
- "version": "1.4.416",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.416.tgz",
- "integrity": "sha512-AUYh0XDTb2vrj0rj82jb3P9hHSyzQNdTPYWZIhPdCOui7/vpme7+HTE07BE5jwuqg/34TZ8ktlRz6GImJ4IXjA==",
+ "version": "1.4.417",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.417.tgz",
+ "integrity": "sha512-8rY8HdCxuSVY8wku3i/eDac4g1b4cSbruzocenrqBlzqruAZYHjQCHIjC66dLR9DXhEHTojsC4EjhZ8KmzwXqA==",
"dev": true This is something I would like to avoid, therefore I banned this file from the repository with a good reason. I now pinned all versions in the |
because something was just released - these should not cause the depds to be updated but the defined ones to be used. Will look at the project setup
not if the |
as per https://docs.npmjs.com/cli/v9/commands/npm-ci we want fixed resolution. this will be slower on a developer machines due to the cleaning of node_modules.
Switched to see https://docs.npmjs.com/cli/v9/commands/npm-ci and https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json this will make the build slower for devs as It may be that we do not need |
The
Basically the command is to make sure all versions of dependencies are the same as in the |
Seems to work as expected with the new changes in pom.xml now. |
if you think you have fixed it then you can and should unignore the lock file. if you ever see changes in that lock file then it is not fixed (and if you manually update dependencies in the package file you should regenerate the lock file). As the lock file is still ignored there is no proof I can see that is indeed fixed. basically the build is not repeatable without a lock file - unless you specify a non floating version of absolutely everything (including all transitive deps) in the package file. |
the
package-lock.json
is vital for the build reproducibility. Without this what is used for the build is non deterministic (withouth actually hard locking all dependencies inpackage.json
which is not the case here)this removes the ignore and checks in a package-lock.json that was created from building a clean checkout
see jenkinsci/bom#2121 (comment)
amends #219
Testing done
Submitter checklist