Skip to content

Commit bd1d35c

Browse files
radu-mocanuclaude
andcommitted
docs: clarify locking behavior and cover uipath push
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent bb7c2fa commit bd1d35c

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

packages/uipath/docs/cli/index.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ authors = [{name = "Your Name", email = "your.email@example.com"}]
206206
/// info
207207
### Dependency Locking
208208

209-
By default, `uipath pack` runs `uv lock` against your `pyproject.toml` and includes the resulting `uv.lock` in the `.nupkg`. The serverless runtime uses the lock file to skip dependency resolution and install pinned versions directly with `uv sync --locked`, which significantly reduces cold-start time and produces deterministic environments across runs.
209+
By default, `uipath pack` includes `uv.lock` in the `.nupkg` (creating it if it does not exist). The executor then installs the pinned versions from the lock file, so every run uses the exact same dependency versions.
210210

211-
Use `--nolock` to opt out — pass it when you do not want the CLI to touch `uv.lock`, or when your project does not use uv:
211+
Use `--nolock` to opt out — `uv.lock` is not added to the package. With no lock file present, the executor resolves dependencies on each run and picks the latest versions compatible with the constraints in your `pyproject.toml`.
212212

213213
<!-- termynal -->
214214
```shell
@@ -217,7 +217,9 @@ Use `--nolock` to opt out — pass it when you do not want the CLI to touch `uv.
217217
✓ Project successfully packaged.
218218
```
219219

220-
With `--nolock`, no lock step runs and `uv.lock` is not added to the package.
220+
**When to lock (default):** you want reproducible runs and protection against breaking changes or malicious upgrades in your dependencies. The versions you tested with are the versions that run.
221+
222+
**When to use `--nolock`:** you want each run to pick up the latest patches automatically within your declared constraints, or your project does not use uv.
221223
///
222224

223225
<!-- termynal -->
@@ -306,6 +308,19 @@ Importing referenced resources to Studio Web project...
306308

307309
🔵 Resource import summary: 0 total resources - 0 created, 0 updated, 0 unchanged, 0 not found
308310
```
311+
312+
/// info
313+
### Dependency Locking
314+
315+
By default, `uipath push` includes `uv.lock` in the upload (creating it if it does not exist). The executor then installs the pinned versions from the lock file, so every run uses the exact same dependency versions.
316+
317+
Use `--nolock` to opt out — `uv.lock` is not uploaded. With no lock file present, the executor resolves dependencies on each run and picks the latest versions compatible with the constraints in your `pyproject.toml`.
318+
319+
**When to lock (default):** you want reproducible runs and protection against breaking changes or malicious upgrades in your dependencies. The versions you tested with are the versions that run.
320+
321+
**When to use `--nolock`:** you want each run to pick up the latest patches automatically within your declared constraints, or your project does not use uv.
322+
///
323+
309324
---
310325

311326
::: mkdocs-click

0 commit comments

Comments
 (0)