diff --git a/packages/uipath/docs/cli/index.md b/packages/uipath/docs/cli/index.md index 9e8401e8c..46f96c460 100644 --- a/packages/uipath/docs/cli/index.md +++ b/packages/uipath/docs/cli/index.md @@ -203,6 +203,25 @@ authors = [{name = "Your Name", email = "your.email@example.com"}] ``` /// +/// info +### Dependency Locking + +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. + +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`. + + +```shell +> uipath pack --nolock +⠋ Packaging project ... +✓ Project successfully packaged. +``` + +**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. + +**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. +/// + ```shell > uipath pack @@ -289,6 +308,19 @@ Importing referenced resources to Studio Web project... 🔵 Resource import summary: 0 total resources - 0 created, 0 updated, 0 unchanged, 0 not found ``` + +/// info +### Dependency Locking + +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. + +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`. + +**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. + +**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. +/// + --- ::: mkdocs-click