Skip to content

Commit

Permalink
[docs] update mops.lock page
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenVoich committed Oct 8, 2024
1 parent a1dc86b commit 67291d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/10-mops.lock.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ When `mops.lock` file exists, no need to specify `--lock` flag.

`mops.lock` is used to ensure integrity of dependencies, so that you can be sure that all dependencies have exactly the same source code as they had when the package author published them to the Mops Registry.

A valid `mops.lock` speeds up `mops install` command because it avoids downloading intermediate versions of dependencies.

_It's only faster when there are no global cached packages. For example you are running `mops install` inside a fresh Docker container. Or when you call `mops install` for the first time in a project._

`mops.lock` contains the following information:
- Hash of `[dependencies]` and `[dev-dependencies]` section of `mops.toml` file
- All transitive dependencies with the final resolved versions
Expand Down

0 comments on commit 67291d5

Please sign in to comment.