mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-23 08:41:48 +00:00
Store resolution options in lockfile (#5264)
## Summary This PR modifies the lockfile to include the impactful resolution settings, like the resolution and pre-release mode. If any of those values change, we want to ignore the existing lockfile. Otherwise, `--resolution lowest-direct` will typically have no effect, which is really unintuitive. Closes https://github.com/astral-sh/uv/issues/5226.
This commit is contained in:
parent
178300d16b
commit
5a23f05799
23 changed files with 406 additions and 16 deletions
|
@ -3,7 +3,7 @@ use std::str::FromStr;
|
|||
use chrono::{DateTime, Days, NaiveDate, NaiveTime, Utc};
|
||||
|
||||
/// A timestamp that excludes files newer than it.
|
||||
#[derive(Debug, Copy, Clone, serde::Deserialize, serde::Serialize)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
|
||||
pub struct ExcludeNewer(DateTime<Utc>);
|
||||
|
||||
impl ExcludeNewer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue