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

Issue 397773002: Create a separate packages directory for running pub. (Closed)

Created:
6 years, 5 months ago by nweiz
Modified:
6 years, 4 months ago
Reviewers:
ricow1, ahe, floitsch
CC:
reviews_dartlang.org, ricow1, Bob Nystrom
Visibility:
Public.

Description

Create a separate packages directory for running pub. Once issue 6943 is fixed, the http package will start using pub's cross-platform library support to work with both dart:io and dart:html. However, this package is also used *within* pub, so we need a way for pub to import it that doesn't require it being run through pub. This change supports this by stripping out and dart:html imports from the http package and creating a special packages directory only used by pub that uses this modified version. BUG=20068 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=38255

Patch Set 1 #

Total comments: 2

Patch Set 2 : code review #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -8 lines) Patch
M pkg/pkg.gyp View 1 chunk +49 lines, -0 lines 3 comments Download
M sdk/bin/pub View 1 chunk +1 line, -1 line 0 comments Download
M sdk/bin/pub.bat View 1 chunk +1 line, -1 line 0 comments Download
M tools/list_pkg_directories.py View 1 chunk +17 lines, -4 lines 0 comments Download
A tools/remove_html_imports.py View 1 1 chunk +39 lines, -0 lines 0 comments Download
M utils/pub/pub.gyp View 2 chunks +2 lines, -2 lines 2 comments Download

Messages

Total messages: 10 (0 generated)
nweiz
6 years, 5 months ago (2014-07-15 19:44:55 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/397773002/diff/1/tools/remove_html_imports.py File tools/remove_html_imports.py (right): https://codereview.chromium.org/397773002/diff/1/tools/remove_html_imports.py#newcode19 tools/remove_html_imports.py:19: HTML_IMPORT = re.compile(r'import ["' "'" r']dart:(html|html_common|indexed_db' use long-strings. ...
6 years, 5 months ago (2014-07-15 20:15:59 UTC) #2
nweiz
https://codereview.chromium.org/397773002/diff/1/tools/remove_html_imports.py File tools/remove_html_imports.py (right): https://codereview.chromium.org/397773002/diff/1/tools/remove_html_imports.py#newcode19 tools/remove_html_imports.py:19: HTML_IMPORT = re.compile(r'import ["' "'" r']dart:(html|html_common|indexed_db' On 2014/07/15 20:15:58, ...
6 years, 5 months ago (2014-07-15 20:27:49 UTC) #3
nweiz
Committed patchset #2 manually as r38255 (presubmit successful).
6 years, 5 months ago (2014-07-15 20:28:14 UTC) #4
ahe
https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp File pkg/pkg.gyp (right): https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp#newcode71 pkg/pkg.gyp:71: '../site/try', Why is this depending on Try Dart?
6 years, 4 months ago (2014-08-06 14:19:57 UTC) #5
nweiz
https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp File pkg/pkg.gyp (right): https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp#newcode71 pkg/pkg.gyp:71: '../site/try', On 2014/08/06 14:19:57, ahe wrote: > Why is ...
6 years, 4 months ago (2014-08-06 19:32:10 UTC) #6
ricow1
https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp File pkg/pkg.gyp (right): https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp#newcode71 pkg/pkg.gyp:71: '../site/try', On 2014/08/06 19:32:10, nweiz wrote: > On 2014/08/06 ...
6 years, 4 months ago (2014-08-07 07:56:40 UTC) #7
nweiz
On 2014/08/07 07:56:40, ricow1 wrote: > https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp > File pkg/pkg.gyp (right): > > https://codereview.chromium.org/397773002/diff/20001/pkg/pkg.gyp#newcode71 > ...
6 years, 4 months ago (2014-08-11 18:51:30 UTC) #8
ricow1
https://codereview.chromium.org/397773002/diff/20001/utils/pub/pub.gyp File utils/pub/pub.gyp (right): https://codereview.chromium.org/397773002/diff/20001/utils/pub/pub.gyp#newcode24 utils/pub/pub.gyp:24: '<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp', Does pub need pub_packages target to be build ...
6 years, 4 months ago (2014-08-12 05:57:21 UTC) #9
nweiz
6 years, 4 months ago (2014-08-12 23:12:18 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/397773002/diff/20001/utils/pub/pub.gyp
File utils/pub/pub.gyp (right):

https://codereview.chromium.org/397773002/diff/20001/utils/pub/pub.gyp#newcode24
utils/pub/pub.gyp:24: '<(SHARED_INTERMEDIATE_DIR)/dart2js_files.stamp',
On 2014/08/12 05:57:21, ricow1 wrote:
> Does pub need pub_packages target to be build before pub is build?
> If so, you need to have this in the inputs as well:
> '<(SHARED_INTERMEDIATE_DIR)/pub_packages.stamp'
> 
> Generally speaking, a dependency does not imply any particular build order
> (because in a normal c world you don't have that, you do the linking at the
end)

Done.

Powered by Google App Engine
This is Rietveld 408576698