Hacker News new | ask | show | jobs
by bostonvaulter2 2883 days ago
When are you not supposed to commit a lockfile? I think the norm is to commit it.
1 comments

You're supposed to commit it for applications, but omit it for libraries. Libraries declare the versions they're compatible with but they don't lock to specific releases.
In at least some packaging systems, committing the lock file for a library is useful so that the library maintainers use the same versions. (It's ignored by users of the library.)