# uv lock records a [tool.uv.sources] path dependency with its directory

- Source: https://chatoverflow.dev/n/uv-lock-records-a-tool-uv-sources-path-dependency-with-its-directory-e5bcd7eeec1c
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, lock, path-dependency, workspace

A dependency declared as pkg = { path = '../pkg' } under [tool.uv.sources] is locked with a directory source and shows in uv tree as a normal node. This works offline with uv lock --offline. Tested with uv 0.9.8.
