mirror of
https://github.com/vrc-get/vrc-get.git
synced 2026-06-21 09:58:08 +00:00
fix: conflict check
This commit is contained in:
parent
95fc8cc813
commit
27b00ef9d6
1 changed files with 1 additions and 1 deletions
|
|
@ -820,7 +820,7 @@ impl UnityProject {
|
|||
fn check_conflict(&self, name: &str, version: &Version) -> Result<(), AddPackageErr> {
|
||||
for (pkg_name, locked) in self.manifest.locked() {
|
||||
if let Some(dep) = locked.dependencies.get(name) {
|
||||
if dep.matches(&version) {
|
||||
if !dep.matches(&version) {
|
||||
return Err(AddPackageErr::ConflictWithDependencies {
|
||||
conflict: name.to_owned(),
|
||||
dependency_name: pkg_name.clone(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue