pub fn upsert(project_root: &Path, entry: LockedPackage) -> Result<(), String>
Insert or replace the entry for entry.name, keeping the file sorted.
entry.name