You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
210
210
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`.
212
212
213
213
<!-- termynal -->
214
214
```shell
@@ -217,7 +217,9 @@ Use `--nolock` to opt out — pass it when you do not want the CLI to touch `uv.
217
217
✓ Project successfully packaged.
218
218
```
219
219
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.
221
223
///
222
224
223
225
<!-- termynal -->
@@ -306,6 +308,19 @@ Importing referenced resources to Studio Web project...
306
308
307
309
🔵 Resource import summary: 0 total resources - 0 created, 0 updated, 0 unchanged, 0 not found
308
310
```
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.
0 commit comments