mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
basic error reporting works
This commit is contained in:
@@ -165,6 +165,7 @@ Tinytest.add("constraint solver - no constraint dependency - anything", function
|
||||
test.isTrue(_.isString(versions.sparkle));
|
||||
});
|
||||
|
||||
|
||||
Tinytest.add("constraint solver - no constraint dependency - transitive dep still picked right", function (test) {
|
||||
currentTest = test;
|
||||
var versions = resolver.resolve({ "sparkle": "none", "sparky-forms": "1.1.2" }, { mode: "CONSERVATIVE" });
|
||||
|
||||
@@ -287,13 +287,15 @@ ConstraintSolver.Resolver.prototype._propagateExactTransDeps =
|
||||
transitiveConstraints = transitiveConstraints.union(uv.constraints);
|
||||
});
|
||||
|
||||
var newChoices = exactTransitiveDepsVersions;
|
||||
|
||||
dependencies = dependencies.union(inexactTransitiveDeps);
|
||||
constraints = constraints.union(transitiveConstraints);
|
||||
choices = _.union(choices, exactTransitiveDepsVersions);
|
||||
choices = _.union(choices, newChoices);
|
||||
|
||||
// Since exact transitive deps are put into choices, there is no need to
|
||||
// keep them in dependencies.
|
||||
_.each(choices, function (uv) {
|
||||
_.each(newChoices, function (uv) {
|
||||
dependencies = dependencies.remove(uv.name);
|
||||
});
|
||||
|
||||
@@ -322,6 +324,10 @@ ConstraintSolver.Resolver.prototype._propagateExactTransDeps =
|
||||
queue.push(dep);
|
||||
isEnqueued[dep.name] = true;
|
||||
});
|
||||
|
||||
// for error reporting
|
||||
uv.constraints.each(function (c) {
|
||||
constraintAncestor[c.toString()] = uv.name; });
|
||||
}
|
||||
|
||||
// Update the constraintAncestor table
|
||||
|
||||
Reference in New Issue
Block a user