feat: Add conan lockfile (#2220)

This commit is contained in:
Ayaz Salikhov
2025-06-13 13:51:59 +01:00
committed by GitHub
parent 3d0e722176
commit ac5fcc7f4b
5 changed files with 75 additions and 1 deletions

View File

@@ -75,6 +75,21 @@ Remove old packages you may have cached interactively.
conan remove xrpl
```
#### Conan lockfile
To achieve reproducible dependencies, we use [Conan lockfile](https://docs.conan.io/2/tutorial/versioning/lockfiles.html).
The `conan.lock` file in the repository contains a "snapshot" of the current dependencies.
It is implicitly used when running `conan` commands, you don't need to specify it.
You have to update this file every time you add a new dependency or change a revision or version of an existing dependency.
To do that, run the following command in the repository root:
```bash
conan lock create . -o '&:tests=True' -o '&:benchmark=True'
```
## Building Clio
Navigate to Clio's root directory and run: