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

Issue 1228093003: Fix several package spec bugs. (Closed)

Created:
5 years, 5 months ago by nweiz
Modified:
5 years, 5 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/pub.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix several package spec bugs. * The package spec's reference to the entrypoint package was pointing to the hosted cache rather than the package's directory. This was caused by the package graph's instance of the entrypoint package incorrectly pointing to the cache; the graph now re-uses `entrypoint.root`. * The package spec didn't contain relative paths for relative path dependencies. This was being missed by our tests because the package spec parser was automatically converting all paths to absolute at parse-time. Closes #1294 R=rnystrom@google.com Committed: https://github.com/dart-lang/pub/commit/9cb2334b6c0c1a2be2ca0558b5aceb1f0a27216e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -20 lines) Patch
M lib/src/command.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/entrypoint.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M test/descriptor/packages.dart View 3 chunks +11 lines, -10 lines 3 comments Download
M test/packages_file_test.dart View 1 4 chunks +22 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
nweiz
5 years, 5 months ago (2015-07-09 18:12:58 UTC) #1
Bob Nystrom
lgtm https://codereview.chromium.org/1228093003/diff/1/test/descriptor/packages.dart File test/descriptor/packages.dart (right): https://codereview.chromium.org/1228093003/diff/1/test/descriptor/packages.dart#newcode80 test/descriptor/packages.dart:80: var base = "/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p"; Does this really need ...
5 years, 5 months ago (2015-07-09 19:42:56 UTC) #2
nweiz
Code review changes
5 years, 5 months ago (2015-07-09 19:45:55 UTC) #3
nweiz
https://codereview.chromium.org/1228093003/diff/1/test/descriptor/packages.dart File test/descriptor/packages.dart (right): https://codereview.chromium.org/1228093003/diff/1/test/descriptor/packages.dart#newcode80 test/descriptor/packages.dart:80: var base = "/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p"; On 2015/07/09 19:42:56, Bob Nystrom ...
5 years, 5 months ago (2015-07-09 19:46:05 UTC) #4
nweiz
Committed patchset #2 (id:20001) manually as 9cb2334b6c0c1a2be2ca0558b5aceb1f0a27216e (presubmit successful).
5 years, 5 months ago (2015-07-09 19:46:14 UTC) #5
Lasse Reichstein Nielsen
https://codereview.chromium.org/1228093003/diff/20001/test/descriptor/packages.dart File test/descriptor/packages.dart (right): https://codereview.chromium.org/1228093003/diff/20001/test/descriptor/packages.dart#newcode79 test/descriptor/packages.dart:79: // "." due to sdk#23809. sdk#23809 could be http://dartbug.com/23809 ...
5 years, 5 months ago (2015-07-13 07:15:37 UTC) #7
nweiz
https://codereview.chromium.org/1228093003/diff/20001/test/descriptor/packages.dart File test/descriptor/packages.dart (right): https://codereview.chromium.org/1228093003/diff/20001/test/descriptor/packages.dart#newcode79 test/descriptor/packages.dart:79: // "." due to sdk#23809. On 2015/07/13 07:15:37, Lasse ...
5 years, 5 months ago (2015-07-13 20:03:44 UTC) #8
Lasse Reichstein Nielsen
5 years, 5 months ago (2015-07-16 14:51:58 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1228093003/diff/20001/test/descriptor/package...
File test/descriptor/packages.dart (right):

https://codereview.chromium.org/1228093003/diff/20001/test/descriptor/package...
test/descriptor/packages.dart:79: // "." due to sdk#23809.
But it also means that there is no direct way for me to go to the error when
reading the code, where I could just cut-n-paste the link into a browser.

Powered by Google App Engine
This is Rietveld 408576698