Skip to content

Commit

Permalink
Ignore update for local path dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Nhinlee committed Jul 19, 2022
1 parent 682745a commit 50df19e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/tool/update_consistent_yaml_v2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ Map<String, PackageDependencySpec> _getAllAppDependenciesYaml(
}
}

// Remove all path dependencies (don't need to override path dependency)
allPackages.removeWhere(
(key, value) => value.iswitcho(
path: (_) => true,
otherwise: () => false,
),
);

return allPackages;
}

Expand Down Expand Up @@ -151,6 +159,14 @@ Map<String, PackageDependency> _getAllAppDependenciesLock(
),
);

// Remove all path dependencies (don't need to override path dependency)
dependencies.removeWhere(
(key, value) => value.iswitcho(
path: (_) => true,
otherwise: () => false,
),
);

return dependencies;
}

Expand Down

0 comments on commit 50df19e

Please sign in to comment.