Skip to content

Commit

Permalink
fix(resolver): go ahead and try to resolve if we just have a version
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Sep 30, 2023
1 parent 544639b commit 8d04d84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/node-maintainer/src/lockfile.rs
Expand Up @@ -166,8 +166,9 @@ impl LockfileNode {
format!("{}@{version}", self.name)
}
(Some(resolved), _) => format!("{}@{resolved}", self.name),
(_, Some(version)) => format!("{}@{version}", self.name),
_ => {
// We ignore this node because it's incomplete and we can't trust it anymore.
// Nothing we can do here, we don't have enough information to resolve the package.
return Ok(None);
}
};
Expand Down

0 comments on commit 8d04d84

Please sign in to comment.