{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/279","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/279/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/279/events","html_url":"https://github.com/dart-lang/pub/issues/279","id":85642528,"number":279,"title":"Workaround for Pub on Windows XP","user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/pub/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-05T22:02:46Z","updated_at":"2015-06-05T22:02:48Z","closed_at":null,"body":"_Originally opened as dart-lang/sdk#6737_\n\n*This issue was originally filed by [swatwork2@gmail.com](https://github.com/search?q=swatwork2%40gmail.com&type=Users)*\n_____\nFrom a post to the mailing list:\n\nI have the following workaround to get pub working on Windows XP.\n\nThe first problem is finding a way to create NTFS junction points on XP. Windows Vista and onwards provide the 'mklink' command but XP does not. To work around this download the sysinternals tool 'junction' from Microsoft and update pub to call it instead of 'mklink'.\n\n1. Download junction from Microsoft: http://technet.microsoft.com/en-gb/sysinternals/bb896768\n2. Extract junction.exe and put it somewhere on the path (e.g. C:\\WINDOWS)\n3. Open a command prompt and type 'junction' to accept the license.\n4. In the Dart SDK locate the pub source (in $DART_SDK\\util\\pub) and edit io.dart:\n\nAt about line 310 (in createSymlink())\n\nChange:\n\n&nbsp;&nbsp;&nbsp;&nbsp;command = 'mklink';\n&nbsp;&nbsp;&nbsp;&nbsp;args = ['/j', to, from];\n&nbsp;&nbsp;&nbsp;\nTo:    \n&nbsp;&nbsp;&nbsp;&nbsp;command = 'junction';\n&nbsp;&nbsp;&nbsp;&nbsp;args = [to, from];\n&nbsp;&nbsp;&nbsp;\nAt this point, local SDK packages can be installed in projects by running pub install from the command line.\n\nAt this stage I had a problem with online packages which would fail to install because of a 7za error concerning absolute paths. To overcome this download the tools from the MSYS project to provide Windows versions of gzip and tar. Get this from\n\nhttp://sourceforge.net/projects/mingw/files/MSYS/Base/msys-core/msys-1.0.11/msysCORE-1.0.11-bin.tar.gz/download\n\nUnpack these files somewhere and put the bin folder on the path. Next, revisit io.dart and comment out the following lines in extractTarGz() (around line 624):\n\n//  if (Platform.operatingSystem == &quot;windows&quot;) {\n//    return \\_extractTarGzWindows(stream, destination);\n//  }\n\n\nPub install should now work with online packages.\n\nThis approach seems to work fine from the command-line but DartEditor just refuses to run pub on XP. This doesn't seem to be anything to do with pub itself but a hard-coded assumption in the editor.\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/109453557","html_url":"https://github.com/dart-lang/pub/issues/279#issuecomment-109453557","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/279","id":109453557,"user":{"login":"DartBot","id":8958862,"avatar_url":"https://avatars.githubusercontent.com/u/8958862?v=3","gravatar_id":"","url":"https://api.github.com/users/DartBot","html_url":"https://github.com/DartBot","followers_url":"https://api.github.com/users/DartBot/followers","following_url":"https://api.github.com/users/DartBot/following{/other_user}","gists_url":"https://api.github.com/users/DartBot/gists{/gist_id}","starred_url":"https://api.github.com/users/DartBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DartBot/subscriptions","organizations_url":"https://api.github.com/users/DartBot/orgs","repos_url":"https://api.github.com/users/DartBot/repos","events_url":"https://api.github.com/users/DartBot/events{/privacy}","received_events_url":"https://api.github.com/users/DartBot/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T22:02:48Z","updated_at":"2015-06-05T22:02:48Z","body":"<a href=\"https://github.com/munificent\"><img src=\"https://avatars.githubusercontent.com/u/46275?v=3\" align=\"left\" width=\"48\" height=\"48\"hspace=\"10\"></img></a> **Comment by [munificent](https://github.com/munificent)**\n\n----\n\n*Removed [Type-Defect](../labels/Type-Defect) label.*\n*Added [Type-Enhancement](../labels/Type-Enhancement) label.*\n"}}