{"action":"closed","number":1043,"pull_request":{"url":"https://api.github.com/repos/commercialhaskell/stack/pulls/1043","id":45927756,"html_url":"https://github.com/commercialhaskell/stack/pull/1043","diff_url":"https://github.com/commercialhaskell/stack/pull/1043.diff","patch_url":"https://github.com/commercialhaskell/stack/pull/1043.patch","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1043","number":1043,"state":"closed","locked":false,"title":"mark executable-only packages as installed when copied from cache","user":{"login":"ljli","id":10927795,"avatar_url":"https://avatars.githubusercontent.com/u/10927795?v=3","gravatar_id":"","url":"https://api.github.com/users/ljli","html_url":"https://github.com/ljli","followers_url":"https://api.github.com/users/ljli/followers","following_url":"https://api.github.com/users/ljli/following{/other_user}","gists_url":"https://api.github.com/users/ljli/gists{/gist_id}","starred_url":"https://api.github.com/users/ljli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljli/subscriptions","organizations_url":"https://api.github.com/users/ljli/orgs","repos_url":"https://api.github.com/users/ljli/repos","events_url":"https://api.github.com/users/ljli/events{/privacy}","received_events_url":"https://api.github.com/users/ljli/received_events","type":"User","site_admin":false},"body":"Executable only packages don't get an entry in the pkgdb. Instead stack marks them via a dummy file in installed-packages. If a package is copied from another snapshot it gets registered if it has library, but when it has not the binaries are copied but the snapshot, which they are copied to doesn't get to know this. That means every time you do stack build they get copied again. That alone isn't a big problem, but they can trigger rebuilds of other packages, which can get out of hand. A solution would be to mark them as installed. Writing this in copyPreCompiled does the trick:\r\n```\r\ncase (mlib, exes) of\r\n    (Nothing, _:_) -> markExeInstalled (taskLocation task) taskProvides\r\n    _ -> return ()\r\n```\r\nBut I wasn't sure about the full implications of this. So I opted for simply not caching them instead. The downside is that people who already cached executable-only packages need to nuke them manually from the cache.","created_at":"2015-09-24T17:50:38Z","updated_at":"2015-09-27T04:16:20Z","closed_at":"2015-09-27T04:16:20Z","merged_at":"2015-09-27T04:16:20Z","merge_commit_sha":"5a2381e8c9a36ade0c29d7da37e9b6e79927d90c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/commercialhaskell/stack/pulls/1043/commits","review_comments_url":"https://api.github.com/repos/commercialhaskell/stack/pulls/1043/comments","review_comment_url":"https://api.github.com/repos/commercialhaskell/stack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1043/comments","statuses_url":"https://api.github.com/repos/commercialhaskell/stack/statuses/2f3b8bc5f6b8dbb0a00b69e5ba9dbf1a8738f257","head":{"label":"ljli:master","ref":"master","sha":"2f3b8bc5f6b8dbb0a00b69e5ba9dbf1a8738f257","user":{"login":"ljli","id":10927795,"avatar_url":"https://avatars.githubusercontent.com/u/10927795?v=3","gravatar_id":"","url":"https://api.github.com/users/ljli","html_url":"https://github.com/ljli","followers_url":"https://api.github.com/users/ljli/followers","following_url":"https://api.github.com/users/ljli/following{/other_user}","gists_url":"https://api.github.com/users/ljli/gists{/gist_id}","starred_url":"https://api.github.com/users/ljli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljli/subscriptions","organizations_url":"https://api.github.com/users/ljli/orgs","repos_url":"https://api.github.com/users/ljli/repos","events_url":"https://api.github.com/users/ljli/events{/privacy}","received_events_url":"https://api.github.com/users/ljli/received_events","type":"User","site_admin":false},"repo":{"id":42046624,"name":"stack","full_name":"ljli/stack","owner":{"login":"ljli","id":10927795,"avatar_url":"https://avatars.githubusercontent.com/u/10927795?v=3","gravatar_id":"","url":"https://api.github.com/users/ljli","html_url":"https://github.com/ljli","followers_url":"https://api.github.com/users/ljli/followers","following_url":"https://api.github.com/users/ljli/following{/other_user}","gists_url":"https://api.github.com/users/ljli/gists{/gist_id}","starred_url":"https://api.github.com/users/ljli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljli/subscriptions","organizations_url":"https://api.github.com/users/ljli/orgs","repos_url":"https://api.github.com/users/ljli/repos","events_url":"https://api.github.com/users/ljli/events{/privacy}","received_events_url":"https://api.github.com/users/ljli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ljli/stack","description":"The Haskell Tool Stack","fork":true,"url":"https://api.github.com/repos/ljli/stack","forks_url":"https://api.github.com/repos/ljli/stack/forks","keys_url":"https://api.github.com/repos/ljli/stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ljli/stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ljli/stack/teams","hooks_url":"https://api.github.com/repos/ljli/stack/hooks","issue_events_url":"https://api.github.com/repos/ljli/stack/issues/events{/number}","events_url":"https://api.github.com/repos/ljli/stack/events","assignees_url":"https://api.github.com/repos/ljli/stack/assignees{/user}","branches_url":"https://api.github.com/repos/ljli/stack/branches{/branch}","tags_url":"https://api.github.com/repos/ljli/stack/tags","blobs_url":"https://api.github.com/repos/ljli/stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ljli/stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ljli/stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/ljli/stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ljli/stack/statuses/{sha}","languages_url":"https://api.github.com/repos/ljli/stack/languages","stargazers_url":"https://api.github.com/repos/ljli/stack/stargazers","contributors_url":"https://api.github.com/repos/ljli/stack/contributors","subscribers_url":"https://api.github.com/repos/ljli/stack/subscribers","subscription_url":"https://api.github.com/repos/ljli/stack/subscription","commits_url":"https://api.github.com/repos/ljli/stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/ljli/stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/ljli/stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/ljli/stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/ljli/stack/contents/{+path}","compare_url":"https://api.github.com/repos/ljli/stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ljli/stack/merges","archive_url":"https://api.github.com/repos/ljli/stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ljli/stack/downloads","issues_url":"https://api.github.com/repos/ljli/stack/issues{/number}","pulls_url":"https://api.github.com/repos/ljli/stack/pulls{/number}","milestones_url":"https://api.github.com/repos/ljli/stack/milestones{/number}","notifications_url":"https://api.github.com/repos/ljli/stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ljli/stack/labels{/name}","releases_url":"https://api.github.com/repos/ljli/stack/releases{/id}","created_at":"2015-09-07T10:24:32Z","updated_at":"2015-09-07T10:24:33Z","pushed_at":"2015-09-25T10:41:39Z","git_url":"git://github.com/ljli/stack.git","ssh_url":"git@github.com:ljli/stack.git","clone_url":"https://github.com/ljli/stack.git","svn_url":"https://github.com/ljli/stack","homepage":"https://www.stackage.org/","size":3797,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"commercialhaskell:master","ref":"master","sha":"42bb3b35b50f93183e5c605f68e73302f3dd16db","user":{"login":"commercialhaskell","id":10633049,"avatar_url":"https://avatars.githubusercontent.com/u/10633049?v=3","gravatar_id":"","url":"https://api.github.com/users/commercialhaskell","html_url":"https://github.com/commercialhaskell","followers_url":"https://api.github.com/users/commercialhaskell/followers","following_url":"https://api.github.com/users/commercialhaskell/following{/other_user}","gists_url":"https://api.github.com/users/commercialhaskell/gists{/gist_id}","starred_url":"https://api.github.com/users/commercialhaskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commercialhaskell/subscriptions","organizations_url":"https://api.github.com/users/commercialhaskell/orgs","repos_url":"https://api.github.com/users/commercialhaskell/repos","events_url":"https://api.github.com/users/commercialhaskell/events{/privacy}","received_events_url":"https://api.github.com/users/commercialhaskell/received_events","type":"Organization","site_admin":false},"repo":{"id":34817922,"name":"stack","full_name":"commercialhaskell/stack","owner":{"login":"commercialhaskell","id":10633049,"avatar_url":"https://avatars.githubusercontent.com/u/10633049?v=3","gravatar_id":"","url":"https://api.github.com/users/commercialhaskell","html_url":"https://github.com/commercialhaskell","followers_url":"https://api.github.com/users/commercialhaskell/followers","following_url":"https://api.github.com/users/commercialhaskell/following{/other_user}","gists_url":"https://api.github.com/users/commercialhaskell/gists{/gist_id}","starred_url":"https://api.github.com/users/commercialhaskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/commercialhaskell/subscriptions","organizations_url":"https://api.github.com/users/commercialhaskell/orgs","repos_url":"https://api.github.com/users/commercialhaskell/repos","events_url":"https://api.github.com/users/commercialhaskell/events{/privacy}","received_events_url":"https://api.github.com/users/commercialhaskell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/commercialhaskell/stack","description":"The Haskell Tool Stack","fork":false,"url":"https://api.github.com/repos/commercialhaskell/stack","forks_url":"https://api.github.com/repos/commercialhaskell/stack/forks","keys_url":"https://api.github.com/repos/commercialhaskell/stack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/commercialhaskell/stack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/commercialhaskell/stack/teams","hooks_url":"https://api.github.com/repos/commercialhaskell/stack/hooks","issue_events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/events{/number}","events_url":"https://api.github.com/repos/commercialhaskell/stack/events","assignees_url":"https://api.github.com/repos/commercialhaskell/stack/assignees{/user}","branches_url":"https://api.github.com/repos/commercialhaskell/stack/branches{/branch}","tags_url":"https://api.github.com/repos/commercialhaskell/stack/tags","blobs_url":"https://api.github.com/repos/commercialhaskell/stack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/commercialhaskell/stack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/commercialhaskell/stack/git/refs{/sha}","trees_url":"https://api.github.com/repos/commercialhaskell/stack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/commercialhaskell/stack/statuses/{sha}","languages_url":"https://api.github.com/repos/commercialhaskell/stack/languages","stargazers_url":"https://api.github.com/repos/commercialhaskell/stack/stargazers","contributors_url":"https://api.github.com/repos/commercialhaskell/stack/contributors","subscribers_url":"https://api.github.com/repos/commercialhaskell/stack/subscribers","subscription_url":"https://api.github.com/repos/commercialhaskell/stack/subscription","commits_url":"https://api.github.com/repos/commercialhaskell/stack/commits{/sha}","git_commits_url":"https://api.github.com/repos/commercialhaskell/stack/git/commits{/sha}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/comments{/number}","issue_comment_url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments{/number}","contents_url":"https://api.github.com/repos/commercialhaskell/stack/contents/{+path}","compare_url":"https://api.github.com/repos/commercialhaskell/stack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/commercialhaskell/stack/merges","archive_url":"https://api.github.com/repos/commercialhaskell/stack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/commercialhaskell/stack/downloads","issues_url":"https://api.github.com/repos/commercialhaskell/stack/issues{/number}","pulls_url":"https://api.github.com/repos/commercialhaskell/stack/pulls{/number}","milestones_url":"https://api.github.com/repos/commercialhaskell/stack/milestones{/number}","notifications_url":"https://api.github.com/repos/commercialhaskell/stack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/commercialhaskell/stack/labels{/name}","releases_url":"https://api.github.com/repos/commercialhaskell/stack/releases{/id}","created_at":"2015-04-29T20:56:42Z","updated_at":"2015-09-26T09:03:05Z","pushed_at":"2015-09-27T04:16:19Z","git_url":"git://github.com/commercialhaskell/stack.git","ssh_url":"git@github.com:commercialhaskell/stack.git","clone_url":"https://github.com/commercialhaskell/stack.git","svn_url":"https://github.com/commercialhaskell/stack","homepage":"https://www.stackage.org/","size":7310,"stargazers_count":987,"watchers_count":987,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":122,"forks":90,"open_issues":122,"watchers":987,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/commercialhaskell/stack/pulls/1043"},"html":{"href":"https://github.com/commercialhaskell/stack/pull/1043"},"issue":{"href":"https://api.github.com/repos/commercialhaskell/stack/issues/1043"},"comments":{"href":"https://api.github.com/repos/commercialhaskell/stack/issues/1043/comments"},"review_comments":{"href":"https://api.github.com/repos/commercialhaskell/stack/pulls/1043/comments"},"review_comment":{"href":"https://api.github.com/repos/commercialhaskell/stack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/commercialhaskell/stack/pulls/1043/commits"},"statuses":{"href":"https://api.github.com/repos/commercialhaskell/stack/statuses/2f3b8bc5f6b8dbb0a00b69e5ba9dbf1a8738f257"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":3,"deletions":0,"changed_files":1}}