Skip to content

Commit

Permalink
Fix lockfiles changing with empty downloads object
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy committed Jul 19, 2024
1 parent f515c99 commit 1482baf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/brioche-core/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1666,5 +1666,7 @@ impl std::fmt::Display for WorkspaceMember {
#[derive(Debug, Default, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
pub struct Lockfile {
pub dependencies: BTreeMap<String, ProjectHash>,

#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub downloads: BTreeMap<url::Url, crate::Hash>,
}

0 comments on commit 1482baf

Please sign in to comment.