mirror of
https://github.com/astral-sh/uv
synced 2026-01-20 21:10:10 -05:00
Add support for --dry-run mode in uv lock (#7783)
This PR adds support for `uv lock --dry-run`, as described in issue #6408. One thing to note: this functionality, as implemented, isn't limited to `-U` (if someone adds a dependency to the project's `pyproject.toml`, the plan will include these changes). --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
This commit is contained in:
@@ -1706,6 +1706,10 @@ uv lock [OPTIONS]
|
||||
|
||||
<p>See <code>--project</code> to only change the project root directory.</p>
|
||||
|
||||
</dd><dt><code>--dry-run</code></dt><dd><p>Perform a dry run, without writing the lockfile.</p>
|
||||
|
||||
<p>In dry-run mode, uv will resolve the project’s dependencies and report on the resulting changes, but will not write the lockfile to disk.</p>
|
||||
|
||||
</dd><dt><code>--exclude-newer</code> <i>exclude-newer</i></dt><dd><p>Limit candidate packages to those that were uploaded prior to the given date.</p>
|
||||
|
||||
<p>Accepts both RFC 3339 timestamps (e.g., <code>2006-12-02T02:07:43Z</code>) and local dates in the same format (e.g., <code>2006-12-02</code>) in your system’s configured time zone.</p>
|
||||
|
||||
Reference in New Issue
Block a user