Skip to content

Commit 503e230

Browse files
authored
docs: Update conan lockfile docs to work on all machines the same way (#2607)
1 parent 97480ce commit 503e230

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/build-clio.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,24 @@ It is implicitly used when running `conan` commands, you don't need to specify i
104104

105105
You have to update this file every time you add a new dependency or change a revision or version of an existing dependency.
106106

107-
To do that, run the following command in the repository root:
107+
> [!NOTE]
108+
> Conan uses local cache by default when creating a lockfile.
109+
>
110+
> To ensure, that lockfile creation works the same way on all developer machines, you should clear the local cache before creating a new lockfile.
111+
112+
To create a new lockfile, run the following commands in the repository root:
108113

109114
```bash
115+
conan remove '*' --confirm
116+
rm conan.lock
117+
# This ensure that xrplf remote is the first to be consulted
118+
conan remote add --force --index 0 xrplf https://conan.ripplex.io
110119
conan lock create .
111120
```
112121

122+
> [!NOTE]
123+
> If some dependencies are exclusive for some OS, you may need to run the last command for them adding `--profile:all <PROFILE>`.
124+
113125
## Building Clio
114126

115127
1. Navigate to Clio's root directory and run:

0 commit comments

Comments
 (0)