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

Issue 15949005: Make bin/pub script work when run from the repo. (Closed)

Created:
7 years, 6 months ago by Bob Nystrom
Modified:
7 years, 6 months ago
Reviewers:
ricow1, nweiz, dgrove, ahe, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make bin/pub script work when run from the repo. BUG=https://code.google.com/p/dart/issues/detail?id=10928 R=dgrove@google.com, nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=23438

Patch Set 1 #

Total comments: 2

Patch Set 2 : Run dart binary from built SDK. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -12 lines) Patch
M sdk/bin/dart View 1 1 chunk +4 lines, -4 lines 2 comments Download
M sdk/bin/pub View 1 chunk +43 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Bob Nystrom
I haven't updated the Windows batch file to work yet. I can do that in ...
7 years, 6 months ago (2013-05-29 17:32:07 UTC) #1
nweiz
One question, otherwise LGTM. https://codereview.chromium.org/15949005/diff/1/sdk/lib/_internal/pub/lib/src/sdk.dart File sdk/lib/_internal/pub/lib/src/sdk.dart (right): https://codereview.chromium.org/15949005/diff/1/sdk/lib/_internal/pub/lib/src/sdk.dart#newcode50 sdk/lib/_internal/pub/lib/src/sdk.dart:50: if (!fileExists(revisionPath)) return new Version.parse("0.1.2+repo"); ...
7 years, 6 months ago (2013-05-29 17:57:00 UTC) #2
Bob Nystrom
Dan, can you take a look at my change to bin/dart? This helps running pub ...
7 years, 6 months ago (2013-05-29 19:45:35 UTC) #3
dgrove
lgtm https://codereview.chromium.org/15949005/diff/4001/sdk/bin/dart File sdk/bin/dart (right): https://codereview.chromium.org/15949005/diff/4001/sdk/bin/dart#newcode19 sdk/bin/dart:19: BIN_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION/dart-sdk/bin I think this will work. I talked ...
7 years, 6 months ago (2013-05-30 17:52:56 UTC) #4
Bob Nystrom
Committed patchset #2 manually as r23438 (presubmit successful).
7 years, 6 months ago (2013-05-30 19:36:56 UTC) #5
ricow1
[+ahe,+kasperl] This makes it impossible to run dart2js from sdk/bin unless you have build the ...
7 years, 6 months ago (2013-06-03 07:21:58 UTC) #6
kasperl
On 2013/06/03 07:21:58, ricow1 wrote: > [+ahe,+kasperl] > This makes it impossible to run dart2js ...
7 years, 6 months ago (2013-06-03 07:25:39 UTC) #7
ahe
I have previously asked that Rico, Martin, and me are involved in CLs that change ...
7 years, 6 months ago (2013-06-03 07:50:09 UTC) #8
dgrove
On 2013/06/03 07:50:09, ahe wrote: > I have previously asked that Rico, Martin, and me ...
7 years, 6 months ago (2013-06-03 14:52:31 UTC) #9
Bob Nystrom
7 years, 6 months ago (2013-06-03 15:25:21 UTC) #10
Message was sent while issue was closed.
On 2013/06/03 07:50:09, ahe wrote:
> I have previously asked that Rico, Martin, and me are involved in CLs that
> change the build system.

Sorry, this patch was a shell script in sdk/ so I didn't realize this was build
related. The initial version of this patch didn't touch the dart2js shell
script. The pub shell script only had Dan in its history, so I added him to the
patch and Kasper.

> You run stuff from dart/sdk/bin to avoid building the SDK. 

Is the goal here to avoid *ever* building the SDK? I thought the intent was just
to not have to build the SDK *every time you make a change to dart2js*. My
intent with this patch was that it would run dart2js directly from the repo. It
just runs it on the Dart VM binary copied into <out>/dart-sdk/dart instead of
<out>/dart.

I thought the only reason we even had a Dart binary at <out>/dart was so that
the VM guys didn't have to think about the SDK. Does the dart2js team also not
build the SDK?

> The advantage to this setup is that there is no build step required to test
> incremental changes to dart2js, I assume pub would benefit from this as well.

Yes, that's the exact intent of this change. I'm not very familiar with these
scripts, but I thought this change did that. What did I miss?

Powered by Google App Engine
This is Rietveld 408576698