Lockfile
Browse docs
A lockfile is a file that records the exact versions of all dependencies used in a project, including sub-dependencies.
This is crucial to ensure your project works across machines when dependencies update by pinning them to specific versions.
lde.lock
This file is generated upon installs and stores all information needed by lde to download all of your dependencies, including, but not limited to:
- Whether a dependency is optional
- The commit hash of a git dependency
- The resolved git url of a registry dependency
Updating
You can update the lockfile by running an lde sync.
Should I commit lde.lock?
It is understandable that you don’t feel great about committing a potentially large, autogenerated file in your repository.
But, as best practice, for an application, you should commit it so you can be aware of when one of your dependencies causes a problem.