From c9f3f61ae4d65563d7ae0a8e9d7ce1d937ac5662 Mon Sep 17 00:00:00 2001 From: radu-mocanu Date: Tue, 28 Apr 2026 14:45:37 +0300 Subject: [PATCH] docs: document uv.lock packing and --nolock flag (#423) --- packages/uipath/docs/cli/index.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/uipath/docs/cli/index.md b/packages/uipath/docs/cli/index.md index 9e8401e8c..1cc198210 100644 --- a/packages/uipath/docs/cli/index.md +++ b/packages/uipath/docs/cli/index.md @@ -203,6 +203,23 @@ authors = [{name = "Your Name", email = "your.email@example.com"}] ``` /// +/// info +### Dependency Locking + +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. + +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: + + +```shell +> uipath pack --nolock +⠋ Packaging project ... +✓ Project successfully packaged. +``` + +With `--nolock`, no lock step runs and `uv.lock` is not added to the package. +/// + ```shell > uipath pack