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

Issue 10949026: Allow circular dependencies on the root source in Pub. (Closed)

Created:
8 years, 3 months ago by nweiz
Modified:
8 years, 3 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Allow circular dependencies on the root source in Pub. BUG=5300 Committed: https://code.google.com/p/dart/source/detail?r=12817

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -54 lines) Patch
M utils/pub/version_solver.dart View 5 chunks +59 lines, -39 lines 2 comments Download
M utils/tests/pub/version_solver_test.dart View 14 chunks +80 lines, -15 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
nweiz
8 years, 3 months ago (2012-09-19 22:55:40 UTC) #1
Bob Nystrom
LGTM. The versionsolver code feels a bit hairy to me. I was thinking it might ...
8 years, 3 months ago (2012-09-20 01:19:54 UTC) #2
nweiz
8 years, 3 months ago (2012-09-24 22:31:16 UTC) #3
I don't think storing a separate root ref is the way to go; I think that'll add
more special cases than it'll remove.

https://codereview.chromium.org/10949026/diff/1/utils/pub/version_solver.dart
File utils/pub/version_solver.dart (right):

https://codereview.chromium.org/10949026/diff/1/utils/pub/version_solver.dart...
utils/pub/version_solver.dart:188: if (seen.contains(dependency.name)) return
false;
On 2012/09/20 01:19:54, Bob Nystrom wrote:
> How about a comment: // Avoid infinite loop if the graph has cycles.

Done.

Powered by Google App Engine
This is Rietveld 408576698