Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(492)

Issue 58100043: Got git targets working (when they're pointing to github). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by pajamallama
Modified:
10 years, 3 months ago
Reviewers:
tapted
CC:
chrome-apps-internsyd_google.com
Base URL:
https://github.com/tapted/bleeding_edge.git@master
Visibility:
Public.

Description

Got git targets working (when they're pointing to github). As a stop-gap to getting git working completely in tavern, I've used Github's APIs to download a tar.gz of the master/head. For example, the following pubspec works: name: git-test dependencies: test_tavern_library: git: url: git@github.com/Pat-Laub/test_tavern_library Note: only github repos will work, and only those with a valid pubspec file. R=tapted@chromium.org Committed: https://github.com/tapted/bleeding_edge/commit/a758118

Patch Set 1 #

Total comments: 21

Patch Set 2 : Fixing nits. #

Total comments: 2

Patch Set 3 : fixing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -43 lines) Patch
M dart/sdk/lib/_internal/pub/lib/src/source/git.dart View 1 2 3 chunks +46 lines, -21 lines 0 comments Download
A dart/sdk/lib/_internal/pub/lib/src/wrap/git_wrap.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/wrap/http_wrap.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/wrap/io_wrap.dart View 1 1 chunk +22 lines, -5 lines 0 comments Download
D dart/sdk/lib/_internal/pub/lib/src/wrap/system_cache.dart View 1 chunk +0 lines, -15 lines 0 comments Download
M dart/sdk/lib/_internal/pub/lib/src/wrap/system_cache_wrap.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/pub/manifest.json View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 7
pajamallama
Git is working :)
10 years, 3 months ago (2014-01-29 02:40:36 UTC) #1
tapted
https://codereview.appspot.com/58100043/diff/1/dart/sdk/lib/_internal/pub/lib/src/source/git.dart File dart/sdk/lib/_internal/pub/lib/src/source/git.dart (right): https://codereview.appspot.com/58100043/diff/1/dart/sdk/lib/_internal/pub/lib/src/source/git.dart#newcode45 dart/sdk/lib/_internal/pub/lib/src/source/git.dart:45: var oldUrl = _getUrl(id); a comment, like: ~"If git ...
10 years, 3 months ago (2014-01-29 03:09:41 UTC) #2
pajamallama
Nit fixes & responses https://codereview.appspot.com/58100043/diff/1/dart/sdk/lib/_internal/pub/lib/src/source/git.dart File dart/sdk/lib/_internal/pub/lib/src/source/git.dart (right): https://codereview.appspot.com/58100043/diff/1/dart/sdk/lib/_internal/pub/lib/src/source/git.dart#newcode45 dart/sdk/lib/_internal/pub/lib/src/source/git.dart:45: var oldUrl = _getUrl(id); On ...
10 years, 3 months ago (2014-01-29 05:33:09 UTC) #3
tapted
lgtm - just some nits https://codereview.appspot.com/58100043/diff/1/dart/sdk/lib/_internal/pub/lib/src/source/git.dart File dart/sdk/lib/_internal/pub/lib/src/source/git.dart (right): https://codereview.appspot.com/58100043/diff/1/dart/sdk/lib/_internal/pub/lib/src/source/git.dart#newcode48 dart/sdk/lib/_internal/pub/lib/src/source/git.dart:48: String repo = gitUri.pathSegments[1].split('.')[0]; ...
10 years, 3 months ago (2014-01-29 06:02:46 UTC) #4
pajamallama
Will update CL description after I can ask you what you want added. https://codereview.appspot.com/58100043/diff/1/dart/sdk/lib/_internal/pub/lib/src/source/git.dart File ...
10 years, 3 months ago (2014-01-29 23:23:32 UTC) #5
pajamallama
Committed patchset #3 manually as ra758118 (presubmit successful).
10 years, 3 months ago (2014-01-29 23:24:05 UTC) #6
tapted
10 years, 3 months ago (2014-01-30 00:28:28 UTC) #7
Message was sent while issue was closed.
On 2014/01/29 23:23:32, pajamallama wrote:
> Will update CL description after I can ask you what you want added.

There's no point updating it after the commit, since it's now in the git log.
(you would need to reset --hard && git push --force to revert it and re-commit).

Maybe I grokked the URL incorrectly, but the `@github.com` in the URI looks
weird. I would expect

  url: git://github.com/dart-lang/foo.git

or

  url: git://tapted@gmail.com:@github.com/dart-lang/foo.git

if the URL required a login.

Pub also seems to have supported

  git: https://tapted@gmail.com:@github.com/dart-lang/foo.git

at some point. But http://pub.dartlang.org/doc/pubspec.html#git-packages is now
missing :/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b