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

Issue 1529063006: - Implement Platform.packageRoot and Platform.packageConfig based (Closed)

Created:
5 years ago by Ivan Posva
Modified:
5 years ago
CC:
reviews_dartlang.org, ricow1, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

- Implement Platform.packageRoot and Platform.packageConfig based on the new specification. BUG= R=lrn@google.com Committed: https://github.com/dart-lang/sdk/commit/b6781b656a5d0ed7e051812e55a18e24d652f414

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -7 lines) Patch
M runtime/bin/builtin.dart View 2 chunks +4 lines, -0 lines 5 comments Download
M runtime/bin/platform_patch.dart View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/lib/internal_patch.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/io/platform.dart View 1 chunk +10 lines, -1 line 0 comments Download
M sdk/lib/io/platform_impl.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/standalone/io/platform_test.dart View 1 chunk +11 lines, -2 lines 0 comments Download
M tools/full-coverage.dart View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Ivan Posva
5 years ago (2015-12-17 06:03:19 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/1529063006/diff/1/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/1529063006/diff/1/runtime/bin/builtin.dart#newcode231 runtime/bin/builtin.dart:231: _packageRoot = _workingDirectory.resolve(packageRoot); If packageRoot starts with a ...
5 years ago (2015-12-17 07:03:33 UTC) #3
Ivan Posva
Generally I have found all of this handling full of eels, so I'd rather not ...
5 years ago (2015-12-17 15:44:35 UTC) #4
Ivan Posva
Committed patchset #1 (id:1) manually as b6781b656a5d0ed7e051812e55a18e24d652f414 (presubmit successful).
5 years ago (2015-12-17 15:48:47 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/1529063006/diff/1/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/1529063006/diff/1/runtime/bin/builtin.dart#newcode231 runtime/bin/builtin.dart:231: _packageRoot = _workingDirectory.resolve(packageRoot); If packageRoot starts with file:, http: ...
5 years ago (2015-12-17 16:34:29 UTC) #7
Johnni Winther
On 2015/12/17 15:48:47, Ivan Posva wrote: > Committed patchset #1 (id:1) manually as > b6781b656a5d0ed7e051812e55a18e24d652f414 ...
5 years ago (2015-12-18 13:42:53 UTC) #8
Lasse Reichstein Nielsen
It's not backwards compatible with every usage of Platform.packageRoot, but the code that breaks was ...
5 years ago (2015-12-18 16:11:03 UTC) #9
Johnni Winther
5 years ago (2015-12-21 08:45:34 UTC) #10
Message was sent while issue was closed.
On 2015/12/18 16:11:03, Lasse Reichstein Nielsen wrote:
> It's not backwards compatible with every usage of Platform.packageRoot, but
the
> code that breaks was already broken.
> It assumes that Platform.packageRoot is a path when it can be, and has always
> been able to be, a URI.
> Now it is always (a string representation of) a URI.
> 
> The errors comes because the URI contains a scheme, and Uri.file on Windows
does
> not allow a colon at that position.
> 
> I don't think we can avoid this problem. The existing Platform.packageRoot had
> other problems as well (like not consistently returning the correct value), so
> some things has to change.
> 
> 
> We can perhaps allow the packageRoot to be relative in the initial isolate,
but
> I would prefer not to. It'll just enable broken code to run.

If packageRoot is now effectively a URI and this is a breaking change, why can't
we just change the type of packageRoot to Uri as well?

Powered by Google App Engine
This is Rietveld 408576698