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

Issue 12285010: Support relative paths in path dependencies. (Closed)

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

Description

Support relative paths in path dependencies. BUG=http://code.google.com/p/dart/issues/detail?id=8527 Committed: https://code.google.com/p/dart/source/detail?r=18605

Patch Set 1 #

Total comments: 21

Patch Set 2 : Generate relative or absolute symlinks based on the path dep. #

Total comments: 2

Patch Set 3 : Revise. #

Total comments: 2

Patch Set 4 : Revise. #

Patch Set 5 : Tweak some comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -126 lines) Patch
M utils/pub/entrypoint.dart View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
M utils/pub/git_source.dart View 1 2 3 4 2 chunks +20 lines, -10 lines 0 comments Download
M utils/pub/hosted_source.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M utils/pub/io.dart View 1 2 3 3 chunks +29 lines, -16 lines 0 comments Download
M utils/pub/lock_file.dart View 1 2 3 chunks +15 lines, -2 lines 0 comments Download
M utils/pub/path_source.dart View 1 2 3 4 1 chunk +54 lines, -22 lines 0 comments Download
M utils/pub/pubspec.dart View 1 2 5 chunks +13 lines, -8 lines 0 comments Download
M utils/pub/sdk_source.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/source.dart View 1 2 2 chunks +15 lines, -5 lines 0 comments Download
A + utils/tests/pub/install/path/absolute_symlink_test.dart View 1 2 chunks +15 lines, -16 lines 0 comments Download
M utils/tests/pub/install/path/relative_path_test.dart View 2 chunks +52 lines, -5 lines 0 comments Download
A + utils/tests/pub/install/path/relative_symlink_test.dart View 1 2 chunks +17 lines, -17 lines 0 comments Download
M utils/tests/pub/lock_file_test.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M utils/tests/pub/pubspec_test.dart View 10 chunks +17 lines, -15 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bob Nystrom
7 years, 10 months ago (2013-02-15 22:31:08 UTC) #1
nweiz
https://codereview.chromium.org/12285010/diff/1/utils/pub/entrypoint.dart File utils/pub/entrypoint.dart (right): https://codereview.chromium.org/12285010/diff/1/utils/pub/entrypoint.dart#newcode213 utils/pub/entrypoint.dart:213: cache.sources); Should this be LockFile.load, which just takes a ...
7 years, 10 months ago (2013-02-15 23:09:24 UTC) #2
Bob Nystrom
Thanks! https://codereview.chromium.org/12285010/diff/1/utils/pub/entrypoint.dart File utils/pub/entrypoint.dart (right): https://codereview.chromium.org/12285010/diff/1/utils/pub/entrypoint.dart#newcode213 utils/pub/entrypoint.dart:213: cache.sources); On 2013/02/15 23:09:24, nweiz wrote: > Should ...
7 years, 10 months ago (2013-02-16 00:09:57 UTC) #3
nweiz
https://codereview.chromium.org/12285010/diff/1/utils/pub/io.dart File utils/pub/io.dart (right): https://codereview.chromium.org/12285010/diff/1/utils/pub/io.dart#newcode274 utils/pub/io.dart:274: Future<String> createSymlink(String symlink, String target, On 2013/02/16 00:09:57, Bob ...
7 years, 10 months ago (2013-02-16 01:02:14 UTC) #4
Bob Nystrom
Thanks! https://codereview.chromium.org/12285010/diff/1/utils/pub/io.dart File utils/pub/io.dart (right): https://codereview.chromium.org/12285010/diff/1/utils/pub/io.dart#newcode274 utils/pub/io.dart:274: Future<String> createSymlink(String symlink, String target, On 2013/02/16 01:02:14, ...
7 years, 10 months ago (2013-02-16 01:19:03 UTC) #5
nweiz
7 years, 10 months ago (2013-02-16 01:33:11 UTC) #6
lgtm

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

https://codereview.chromium.org/12285010/diff/1/utils/pub/path_source.dart#ne...
utils/pub/path_source.dart:53: // local file system.
On 2013/02/16 01:19:03, Bob Nystrom wrote:
> On 2013/02/16 01:02:14, nweiz wrote:
> > On 2013/02/16 00:09:57, Bob Nystrom wrote:
> > > On 2013/02/15 23:09:24, nweiz wrote:
> > > > Can this ever happen in practice? If so, we should throw a more useful
> error
> > > > here.
> > > 
> > > If a hosted package had a path dependency (which is specifically a
> validation
> > > error) you would hit this path. I don't think it will occur in practice,
> > though
> > > pub the client app itself doesn't currently ensure this.
> > 
> > What if a remote git dependency has a path dependency?
> 
> I believe that will get installed locally, and then it'll resolve the path dep
> from there.

That sounds like something else we should throw a meaningful error for.

Powered by Google App Engine
This is Rietveld 408576698