News for hackers. Stuff that matters.
Re:'No way to prevent this,' says only package manager where... by nayroclade on Saturday May 16, 2026 @07:07AM (#48159056)
Dependency versions are also locked for npm projects via package-lock.json, and this has been the default behaviour for years. The version ranges specified in package.json don't mean you just pick up the latest whenever you run npm install. Unless you delete package-lock.json or run "npm update", you and everyone else gets the exact same dependency tree each time. So it is just as reproducible as a Maven build in that sense.
Re:'No way to prevent this,' says only package manager where... by panzi on Saturday May 16, 2026 @12:22PM (#48161556)
Plus the lock file doesn't just contain the exact versions, it contains hashes. Making sure that you actually got the package in the exact same version.