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

Issue 2532053005: Store library paths relative to a given application root folder. (Closed)

Created:
4 years ago by asgerf
Modified:
4 years ago
CC:
reviews_dartlang.org, dart-kernel_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Store library paths relative to a given application root folder. In kernel, library import URIs now support an "app" scheme as an alternative to the "file" scheme, representing a path relative to the application root. dartk takes an --app-root flag giving the application root. If none is given, file URIs are used instead. The intention is that kernel binaries should not carry irrelevant path information, such as the path to the home directory of the user who compiled a given file. It is not the intention that end-users should see an app URI. Import paths are currently not shown to users at all, and if we need to do this, they should be translated to file paths first. In theory we could stick to file URIs with relative paths, but the Uri class from dart:core makes this difficult, as certain operations on it assume that file paths should be absolute. Source mapping URIs are not yet affected by this change. R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/60adb852ad706ecf9424c77d47fa05583d543def Reverted: https://github.com/dart-lang/sdk/commit/bb540416f27c39d75ee7f243899939fc37a2cd03 Committed: https://github.com/dart-lang/sdk/commit/709c1e0b759425ca0924f1c032e0ac6345625318

Patch Set 1 #

Patch Set 2 : Make application root optional #

Patch Set 3 : Revert changes to testcase baseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -77 lines) Patch
M pkg/front_end/tool/perf.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/kernel/bin/dartk.dart View 1 5 chunks +22 lines, -6 lines 0 comments Download
M pkg/kernel/lib/analyzer/loader.dart View 1 9 chunks +21 lines, -15 lines 0 comments Download
A pkg/kernel/lib/application_root.dart View 1 1 chunk +45 lines, -0 lines 0 comments Download
M pkg/kernel/lib/ast.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M pkg/kernel/lib/repository.dart View 1 2 chunks +1 line, -50 lines 0 comments Download
M pkg/kernel/test/baseline_tester.dart View 1 3 chunks +6 lines, -2 lines 0 comments Download
M pkg/kernel/test/frontend_bench.dart View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
asgerf
4 years ago (2016-11-29 11:15:52 UTC) #5
Kevin Millikin (Google)
lgtm
4 years ago (2016-11-29 11:19:29 UTC) #6
asgerf
Committed patchset #1 (id:1) manually as 60adb852ad706ecf9424c77d47fa05583d543def (presubmit successful).
4 years ago (2016-11-29 11:40:24 UTC) #8
asgerf
PTAL at patch #2 The issue with files outside the application root has been resolved.
4 years ago (2016-11-29 14:41:51 UTC) #11
Kevin Millikin (Google)
LGTM.
4 years ago (2016-11-30 07:19:03 UTC) #12
asgerf
4 years ago (2016-11-30 09:39:54 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
709c1e0b759425ca0924f1c032e0ac6345625318 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698