mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 11:55:51 +00:00 
			
		
		
		
	feat: Add conan lockfile (#2220)
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user