{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift-package-manager/pulls/comments/65801842","id":65801842,"diff_hunk":"@@ -34,10 +35,16 @@ struct UserToolchain: Toolchain {\n \n     init() throws {\n         do {\n+\n             SWIFT_EXEC = getenv(\"SWIFT_EXEC\")\n                 // use the swiftc installed alongside ourselves\n                 ?? Path.join(Process.arguments[0], \"../swiftc\").abspath\n \n+            lldb = getenv(\"LLDB\")\n+                // use the lldb installed alongside ourselves\n+                ?? Path.join(Process.arguments[0], \"../lldb\").abspath","path":"Sources/Commands/UserToolchain.swift","position":19,"original_position":19,"commit_id":"905cef3bdeaee1183de2b047ff6f3d96d8b0d850","original_commit_id":"78e2473e35dd6820c11fb82e181e386a48cff605","user":{"login":"bhargavg","id":5916302,"avatar_url":"https://avatars.githubusercontent.com/u/5916302?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavg","html_url":"https://github.com/bhargavg","followers_url":"https://api.github.com/users/bhargavg/followers","following_url":"https://api.github.com/users/bhargavg/following{/other_user}","gists_url":"https://api.github.com/users/bhargavg/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavg/subscriptions","organizations_url":"https://api.github.com/users/bhargavg/orgs","repos_url":"https://api.github.com/users/bhargavg/repos","events_url":"https://api.github.com/users/bhargavg/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavg/received_events","type":"User","site_admin":false},"body":"We only have path for `swiftc` and not `swift` in `Toolchain`. So a path needs to be added either for invoking REPL.\r\n\r\nI looked at how swift is launching repl, it's nothing but `lldb --repl`. So I added path for `lldb` directly.","created_at":"2016-06-04T12:15:21Z","updated_at":"2016-06-04T12:15:21Z","html_url":"https://github.com/apple/swift-package-manager/pull/393#discussion_r65801842","pull_request_url":"https://api.github.com/repos/apple/swift-package-manager/pulls/393","_links":{"self":{"href":"https://api.github.com/repos/apple/swift-package-manager/pulls/comments/65801842"},"html":{"href":"https://github.com/apple/swift-package-manager/pull/393#discussion_r65801842"},"pull_request":{"href":"https://api.github.com/repos/apple/swift-package-manager/pulls/393"}}},"pull_request":{"url":"https://api.github.com/repos/apple/swift-package-manager/pulls/393","id":72600833,"html_url":"https://github.com/apple/swift-package-manager/pull/393","diff_url":"https://github.com/apple/swift-package-manager/pull/393.diff","patch_url":"https://github.com/apple/swift-package-manager/pull/393.patch","issue_url":"https://api.github.com/repos/apple/swift-package-manager/issues/393","number":393,"state":"open","locked":false,"title":"[WIP][Build] Add repl mode to launch LLDB REPL","user":{"login":"bhargavg","id":5916302,"avatar_url":"https://avatars.githubusercontent.com/u/5916302?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavg","html_url":"https://github.com/bhargavg","followers_url":"https://api.github.com/users/bhargavg/followers","following_url":"https://api.github.com/users/bhargavg/following{/other_user}","gists_url":"https://api.github.com/users/bhargavg/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavg/subscriptions","organizations_url":"https://api.github.com/users/bhargavg/orgs","repos_url":"https://api.github.com/users/bhargavg/repos","events_url":"https://api.github.com/users/bhargavg/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavg/received_events","type":"User","site_admin":false},"body":"This patch adds `repl` sub command to `swift build` that can launch REPL with all the modules linked.","created_at":"2016-06-04T11:57:20Z","updated_at":"2016-06-04T12:15:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9755fff98d763dc40ed1a6a936750ffaa8643dd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift-package-manager/pulls/393/commits","review_comments_url":"https://api.github.com/repos/apple/swift-package-manager/pulls/393/comments","review_comment_url":"https://api.github.com/repos/apple/swift-package-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift-package-manager/issues/393/comments","statuses_url":"https://api.github.com/repos/apple/swift-package-manager/statuses/905cef3bdeaee1183de2b047ff6f3d96d8b0d850","head":{"label":"bhargavg:repl","ref":"repl","sha":"905cef3bdeaee1183de2b047ff6f3d96d8b0d850","user":{"login":"bhargavg","id":5916302,"avatar_url":"https://avatars.githubusercontent.com/u/5916302?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavg","html_url":"https://github.com/bhargavg","followers_url":"https://api.github.com/users/bhargavg/followers","following_url":"https://api.github.com/users/bhargavg/following{/other_user}","gists_url":"https://api.github.com/users/bhargavg/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavg/subscriptions","organizations_url":"https://api.github.com/users/bhargavg/orgs","repos_url":"https://api.github.com/users/bhargavg/repos","events_url":"https://api.github.com/users/bhargavg/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavg/received_events","type":"User","site_admin":false},"repo":{"id":52591901,"name":"swift-package-manager","full_name":"bhargavg/swift-package-manager","owner":{"login":"bhargavg","id":5916302,"avatar_url":"https://avatars.githubusercontent.com/u/5916302?v=3","gravatar_id":"","url":"https://api.github.com/users/bhargavg","html_url":"https://github.com/bhargavg","followers_url":"https://api.github.com/users/bhargavg/followers","following_url":"https://api.github.com/users/bhargavg/following{/other_user}","gists_url":"https://api.github.com/users/bhargavg/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavg/subscriptions","organizations_url":"https://api.github.com/users/bhargavg/orgs","repos_url":"https://api.github.com/users/bhargavg/repos","events_url":"https://api.github.com/users/bhargavg/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhargavg/swift-package-manager","description":"The Package Manager for the Swift Programming Language","fork":true,"url":"https://api.github.com/repos/bhargavg/swift-package-manager","forks_url":"https://api.github.com/repos/bhargavg/swift-package-manager/forks","keys_url":"https://api.github.com/repos/bhargavg/swift-package-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhargavg/swift-package-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhargavg/swift-package-manager/teams","hooks_url":"https://api.github.com/repos/bhargavg/swift-package-manager/hooks","issue_events_url":"https://api.github.com/repos/bhargavg/swift-package-manager/issues/events{/number}","events_url":"https://api.github.com/repos/bhargavg/swift-package-manager/events","assignees_url":"https://api.github.com/repos/bhargavg/swift-package-manager/assignees{/user}","branches_url":"https://api.github.com/repos/bhargavg/swift-package-manager/branches{/branch}","tags_url":"https://api.github.com/repos/bhargavg/swift-package-manager/tags","blobs_url":"https://api.github.com/repos/bhargavg/swift-package-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhargavg/swift-package-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhargavg/swift-package-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhargavg/swift-package-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhargavg/swift-package-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/bhargavg/swift-package-manager/languages","stargazers_url":"https://api.github.com/repos/bhargavg/swift-package-manager/stargazers","contributors_url":"https://api.github.com/repos/bhargavg/swift-package-manager/contributors","subscribers_url":"https://api.github.com/repos/bhargavg/swift-package-manager/subscribers","subscription_url":"https://api.github.com/repos/bhargavg/swift-package-manager/subscription","commits_url":"https://api.github.com/repos/bhargavg/swift-package-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhargavg/swift-package-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhargavg/swift-package-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhargavg/swift-package-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhargavg/swift-package-manager/contents/{+path}","compare_url":"https://api.github.com/repos/bhargavg/swift-package-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhargavg/swift-package-manager/merges","archive_url":"https://api.github.com/repos/bhargavg/swift-package-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhargavg/swift-package-manager/downloads","issues_url":"https://api.github.com/repos/bhargavg/swift-package-manager/issues{/number}","pulls_url":"https://api.github.com/repos/bhargavg/swift-package-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/bhargavg/swift-package-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/bhargavg/swift-package-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhargavg/swift-package-manager/labels{/name}","releases_url":"https://api.github.com/repos/bhargavg/swift-package-manager/releases{/id}","deployments_url":"https://api.github.com/repos/bhargavg/swift-package-manager/deployments","created_at":"2016-02-26T09:01:06Z","updated_at":"2016-02-26T09:01:07Z","pushed_at":"2016-06-04T12:14:41Z","git_url":"git://github.com/bhargavg/swift-package-manager.git","ssh_url":"git@github.com:bhargavg/swift-package-manager.git","clone_url":"https://github.com/bhargavg/swift-package-manager.git","svn_url":"https://github.com/bhargavg/swift-package-manager","homepage":"","size":1678,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apple:master","ref":"master","sha":"a2b97cf4fd7432e35699aa656e942dfd770974e9","user":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":44840041,"name":"swift-package-manager","full_name":"apple/swift-package-manager","owner":{"login":"apple","id":10639145,"avatar_url":"https://avatars.githubusercontent.com/u/10639145?v=3","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apple/swift-package-manager","description":"The Package Manager for the Swift Programming Language","fork":false,"url":"https://api.github.com/repos/apple/swift-package-manager","forks_url":"https://api.github.com/repos/apple/swift-package-manager/forks","keys_url":"https://api.github.com/repos/apple/swift-package-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift-package-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift-package-manager/teams","hooks_url":"https://api.github.com/repos/apple/swift-package-manager/hooks","issue_events_url":"https://api.github.com/repos/apple/swift-package-manager/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift-package-manager/events","assignees_url":"https://api.github.com/repos/apple/swift-package-manager/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift-package-manager/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift-package-manager/tags","blobs_url":"https://api.github.com/repos/apple/swift-package-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift-package-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift-package-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift-package-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift-package-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift-package-manager/languages","stargazers_url":"https://api.github.com/repos/apple/swift-package-manager/stargazers","contributors_url":"https://api.github.com/repos/apple/swift-package-manager/contributors","subscribers_url":"https://api.github.com/repos/apple/swift-package-manager/subscribers","subscription_url":"https://api.github.com/repos/apple/swift-package-manager/subscription","commits_url":"https://api.github.com/repos/apple/swift-package-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift-package-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift-package-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift-package-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift-package-manager/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift-package-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift-package-manager/merges","archive_url":"https://api.github.com/repos/apple/swift-package-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift-package-manager/downloads","issues_url":"https://api.github.com/repos/apple/swift-package-manager/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift-package-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift-package-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift-package-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift-package-manager/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift-package-manager/releases{/id}","deployments_url":"https://api.github.com/repos/apple/swift-package-manager/deployments","created_at":"2015-10-23T21:41:12Z","updated_at":"2016-06-04T03:23:46Z","pushed_at":"2016-06-04T12:14:41Z","git_url":"git://github.com/apple/swift-package-manager.git","ssh_url":"git@github.com:apple/swift-package-manager.git","clone_url":"https://github.com/apple/swift-package-manager.git","svn_url":"https://github.com/apple/swift-package-manager","homepage":"","size":2448,"stargazers_count":4144,"watchers_count":4144,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":345,"mirror_url":null,"open_issues_count":13,"forks":345,"open_issues":13,"watchers":4144,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift-package-manager/pulls/393"},"html":{"href":"https://github.com/apple/swift-package-manager/pull/393"},"issue":{"href":"https://api.github.com/repos/apple/swift-package-manager/issues/393"},"comments":{"href":"https://api.github.com/repos/apple/swift-package-manager/issues/393/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift-package-manager/pulls/393/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift-package-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift-package-manager/pulls/393/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift-package-manager/statuses/905cef3bdeaee1183de2b047ff6f3d96d8b0d850"}}}}
{"actor":{"display_login":"bhargavg"}}