{"action":"opened","number":200,"pull_request":{"url":"https://api.github.com/repos/crystal-lang/shards/pulls/200","id":181153208,"html_url":"https://github.com/crystal-lang/shards/pull/200","diff_url":"https://github.com/crystal-lang/shards/pull/200.diff","patch_url":"https://github.com/crystal-lang/shards/pull/200.patch","issue_url":"https://api.github.com/repos/crystal-lang/shards/issues/200","number":200,"state":"open","locked":false,"title":"Fix: conflicts in global cache","user":{"login":"ysbaddaden","id":47380,"avatar_url":"https://avatars3.githubusercontent.com/u/47380?v=4","gravatar_id":"","url":"https://api.github.com/users/ysbaddaden","html_url":"https://github.com/ysbaddaden","followers_url":"https://api.github.com/users/ysbaddaden/followers","following_url":"https://api.github.com/users/ysbaddaden/following{/other_user}","gists_url":"https://api.github.com/users/ysbaddaden/gists{/gist_id}","starred_url":"https://api.github.com/users/ysbaddaden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysbaddaden/subscriptions","organizations_url":"https://api.github.com/users/ysbaddaden/orgs","repos_url":"https://api.github.com/users/ysbaddaden/repos","events_url":"https://api.github.com/users/ysbaddaden/events{/privacy}","received_events_url":"https://api.github.com/users/ysbaddaden/received_events","type":"User","site_admin":false},"body":"Using a global cache for many projects can't avoid clashes if two projects rely on the same Shard but from different repositories. For example a project relies on the latest version, but another one needs a custom fork with a few patches merged.\r\n\r\nThis patch prevents such clashes by introducing the following naming convention across resolvers (right now only the git resolver uses the cache):\r\n\r\n    :cache/:host/:path.:ext\r\n\r\nFor example:\r\n\r\n    $HOME/.cache/shards/github.com/crystal-lang/shards.git\r\n\r\nCloses #190 ","created_at":"2018-04-12T10:12:06Z","updated_at":"2018-04-12T10:12:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/crystal-lang/shards/pulls/200/commits","review_comments_url":"https://api.github.com/repos/crystal-lang/shards/pulls/200/comments","review_comment_url":"https://api.github.com/repos/crystal-lang/shards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crystal-lang/shards/issues/200/comments","statuses_url":"https://api.github.com/repos/crystal-lang/shards/statuses/2318496bdb0e3616442be32116b9e7a4b809a01f","head":{"label":"crystal-lang:fix-global-cache-conflicts","ref":"fix-global-cache-conflicts","sha":"2318496bdb0e3616442be32116b9e7a4b809a01f","user":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":35936749,"name":"shards","full_name":"crystal-lang/shards","owner":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crystal-lang/shards","description":"Dependency manager for the Crystal language","fork":false,"url":"https://api.github.com/repos/crystal-lang/shards","forks_url":"https://api.github.com/repos/crystal-lang/shards/forks","keys_url":"https://api.github.com/repos/crystal-lang/shards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crystal-lang/shards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crystal-lang/shards/teams","hooks_url":"https://api.github.com/repos/crystal-lang/shards/hooks","issue_events_url":"https://api.github.com/repos/crystal-lang/shards/issues/events{/number}","events_url":"https://api.github.com/repos/crystal-lang/shards/events","assignees_url":"https://api.github.com/repos/crystal-lang/shards/assignees{/user}","branches_url":"https://api.github.com/repos/crystal-lang/shards/branches{/branch}","tags_url":"https://api.github.com/repos/crystal-lang/shards/tags","blobs_url":"https://api.github.com/repos/crystal-lang/shards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crystal-lang/shards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crystal-lang/shards/git/refs{/sha}","trees_url":"https://api.github.com/repos/crystal-lang/shards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crystal-lang/shards/statuses/{sha}","languages_url":"https://api.github.com/repos/crystal-lang/shards/languages","stargazers_url":"https://api.github.com/repos/crystal-lang/shards/stargazers","contributors_url":"https://api.github.com/repos/crystal-lang/shards/contributors","subscribers_url":"https://api.github.com/repos/crystal-lang/shards/subscribers","subscription_url":"https://api.github.com/repos/crystal-lang/shards/subscription","commits_url":"https://api.github.com/repos/crystal-lang/shards/commits{/sha}","git_commits_url":"https://api.github.com/repos/crystal-lang/shards/git/commits{/sha}","comments_url":"https://api.github.com/repos/crystal-lang/shards/comments{/number}","issue_comment_url":"https://api.github.com/repos/crystal-lang/shards/issues/comments{/number}","contents_url":"https://api.github.com/repos/crystal-lang/shards/contents/{+path}","compare_url":"https://api.github.com/repos/crystal-lang/shards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crystal-lang/shards/merges","archive_url":"https://api.github.com/repos/crystal-lang/shards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crystal-lang/shards/downloads","issues_url":"https://api.github.com/repos/crystal-lang/shards/issues{/number}","pulls_url":"https://api.github.com/repos/crystal-lang/shards/pulls{/number}","milestones_url":"https://api.github.com/repos/crystal-lang/shards/milestones{/number}","notifications_url":"https://api.github.com/repos/crystal-lang/shards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crystal-lang/shards/labels{/name}","releases_url":"https://api.github.com/repos/crystal-lang/shards/releases{/id}","deployments_url":"https://api.github.com/repos/crystal-lang/shards/deployments","created_at":"2015-05-20T08:50:03Z","updated_at":"2018-04-12T09:27:42Z","pushed_at":"2018-04-12T10:11:40Z","git_url":"git://github.com/crystal-lang/shards.git","ssh_url":"git@github.com:crystal-lang/shards.git","clone_url":"https://github.com/crystal-lang/shards.git","svn_url":"https://github.com/crystal-lang/shards","homepage":null,"size":260,"stargazers_count":427,"watchers_count":427,"language":"Crystal","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":44,"open_issues":41,"watchers":427,"default_branch":"master"}},"base":{"label":"crystal-lang:master","ref":"master","sha":"a0054b2050e88936ba6571635b9241d6a73562f4","user":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":35936749,"name":"shards","full_name":"crystal-lang/shards","owner":{"login":"crystal-lang","id":6539796,"avatar_url":"https://avatars0.githubusercontent.com/u/6539796?v=4","gravatar_id":"","url":"https://api.github.com/users/crystal-lang","html_url":"https://github.com/crystal-lang","followers_url":"https://api.github.com/users/crystal-lang/followers","following_url":"https://api.github.com/users/crystal-lang/following{/other_user}","gists_url":"https://api.github.com/users/crystal-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/crystal-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crystal-lang/subscriptions","organizations_url":"https://api.github.com/users/crystal-lang/orgs","repos_url":"https://api.github.com/users/crystal-lang/repos","events_url":"https://api.github.com/users/crystal-lang/events{/privacy}","received_events_url":"https://api.github.com/users/crystal-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crystal-lang/shards","description":"Dependency manager for the Crystal language","fork":false,"url":"https://api.github.com/repos/crystal-lang/shards","forks_url":"https://api.github.com/repos/crystal-lang/shards/forks","keys_url":"https://api.github.com/repos/crystal-lang/shards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crystal-lang/shards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crystal-lang/shards/teams","hooks_url":"https://api.github.com/repos/crystal-lang/shards/hooks","issue_events_url":"https://api.github.com/repos/crystal-lang/shards/issues/events{/number}","events_url":"https://api.github.com/repos/crystal-lang/shards/events","assignees_url":"https://api.github.com/repos/crystal-lang/shards/assignees{/user}","branches_url":"https://api.github.com/repos/crystal-lang/shards/branches{/branch}","tags_url":"https://api.github.com/repos/crystal-lang/shards/tags","blobs_url":"https://api.github.com/repos/crystal-lang/shards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crystal-lang/shards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crystal-lang/shards/git/refs{/sha}","trees_url":"https://api.github.com/repos/crystal-lang/shards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crystal-lang/shards/statuses/{sha}","languages_url":"https://api.github.com/repos/crystal-lang/shards/languages","stargazers_url":"https://api.github.com/repos/crystal-lang/shards/stargazers","contributors_url":"https://api.github.com/repos/crystal-lang/shards/contributors","subscribers_url":"https://api.github.com/repos/crystal-lang/shards/subscribers","subscription_url":"https://api.github.com/repos/crystal-lang/shards/subscription","commits_url":"https://api.github.com/repos/crystal-lang/shards/commits{/sha}","git_commits_url":"https://api.github.com/repos/crystal-lang/shards/git/commits{/sha}","comments_url":"https://api.github.com/repos/crystal-lang/shards/comments{/number}","issue_comment_url":"https://api.github.com/repos/crystal-lang/shards/issues/comments{/number}","contents_url":"https://api.github.com/repos/crystal-lang/shards/contents/{+path}","compare_url":"https://api.github.com/repos/crystal-lang/shards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crystal-lang/shards/merges","archive_url":"https://api.github.com/repos/crystal-lang/shards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crystal-lang/shards/downloads","issues_url":"https://api.github.com/repos/crystal-lang/shards/issues{/number}","pulls_url":"https://api.github.com/repos/crystal-lang/shards/pulls{/number}","milestones_url":"https://api.github.com/repos/crystal-lang/shards/milestones{/number}","notifications_url":"https://api.github.com/repos/crystal-lang/shards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crystal-lang/shards/labels{/name}","releases_url":"https://api.github.com/repos/crystal-lang/shards/releases{/id}","deployments_url":"https://api.github.com/repos/crystal-lang/shards/deployments","created_at":"2015-05-20T08:50:03Z","updated_at":"2018-04-12T09:27:42Z","pushed_at":"2018-04-12T10:11:40Z","git_url":"git://github.com/crystal-lang/shards.git","ssh_url":"git@github.com:crystal-lang/shards.git","clone_url":"https://github.com/crystal-lang/shards.git","svn_url":"https://github.com/crystal-lang/shards","homepage":null,"size":260,"stargazers_count":427,"watchers_count":427,"language":"Crystal","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":44,"open_issues":41,"watchers":427,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crystal-lang/shards/pulls/200"},"html":{"href":"https://github.com/crystal-lang/shards/pull/200"},"issue":{"href":"https://api.github.com/repos/crystal-lang/shards/issues/200"},"comments":{"href":"https://api.github.com/repos/crystal-lang/shards/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/crystal-lang/shards/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/crystal-lang/shards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crystal-lang/shards/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/crystal-lang/shards/statuses/2318496bdb0e3616442be32116b9e7a4b809a01f"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":20,"deletions":9,"changed_files":3}}
{"actor":{"display_login":"ysbaddaden"}}