Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(929)

Unified Diff: lib/src/package.dart

Issue 1956543002: Fix a lockfile freshness checking bug. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/entrypoint.dart ('k') | test/must_pub_get_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/package.dart
diff --git a/lib/src/package.dart b/lib/src/package.dart
index e82f4da0306ea43aed9150cf63e1a16bad65f5c5..23c1d738c44d5249fa976b9f422417ff394b213a 100644
--- a/lib/src/package.dart
+++ b/lib/src/package.dart
@@ -482,7 +482,7 @@ class PackageDep extends _PackageName {
return "$name $constraint from $source ($description)";
}
- int get hashCode => name.hashCode ^ source.hashCode;
+ int get hashCode => name.hashCode ^ source.hashCode ^ constraint.hashCode;
bool operator ==(other) {
// TODO(rnystrom): We're assuming here that we don't need to delve into the
« no previous file with comments | « lib/src/entrypoint.dart ('k') | test/must_pub_get_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698