Skip to content

Commit

Permalink
fix(install): dependencies are not added to locked
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Jan 25, 2023
1 parent 6f0cc7b commit f7b3511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vpm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ impl UnityProject {
// then, lock all dependencies
for pkg in packages.iter() {
self.manifest.add_locked(
&request.name,
&pkg.name,
VpmLockedDependency::new(
pkg.version.clone(),
pkg.vpm_dependencies.clone().unwrap_or_else(IndexMap::new),
Expand Down Expand Up @@ -994,7 +994,7 @@ impl UnityProject {
.locked()
.get(dep)
.map(|x| range.matches(&x.version))
.unwrap_or(false)
.unwrap_or(true)
{
let found = env
.find_package_by_name(dep, VersionSelector::Range(range))
Expand Down

0 comments on commit f7b3511

Please sign in to comment.