{"action":"created","issue":{"url":"https://api.github.com/repos/conan-io/conan/issues/1589","repository_url":"https://api.github.com/repos/conan-io/conan","labels_url":"https://api.github.com/repos/conan-io/conan/issues/1589/labels{/name}","comments_url":"https://api.github.com/repos/conan-io/conan/issues/1589/comments","events_url":"https://api.github.com/repos/conan-io/conan/issues/1589/events","html_url":"https://github.com/conan-io/conan/issues/1589","id":248872970,"number":1589,"title":"exports_sources cannot handle read only files","user":{"login":"mpdelbuono","id":830109,"avatar_url":"https://avatars3.githubusercontent.com/u/830109?v=4","gravatar_id":"","url":"https://api.github.com/users/mpdelbuono","html_url":"https://github.com/mpdelbuono","followers_url":"https://api.github.com/users/mpdelbuono/followers","following_url":"https://api.github.com/users/mpdelbuono/following{/other_user}","gists_url":"https://api.github.com/users/mpdelbuono/gists{/gist_id}","starred_url":"https://api.github.com/users/mpdelbuono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpdelbuono/subscriptions","organizations_url":"https://api.github.com/users/mpdelbuono/orgs","repos_url":"https://api.github.com/users/mpdelbuono/repos","events_url":"https://api.github.com/users/mpdelbuono/events{/privacy}","received_events_url":"https://api.github.com/users/mpdelbuono/received_events","type":"User","site_admin":false},"labels":[{"id":293864763,"url":"https://api.github.com/repos/conan-io/conan/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"memsharded","id":15367152,"avatar_url":"https://avatars2.githubusercontent.com/u/15367152?v=4","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false},"assignees":[{"login":"memsharded","id":15367152,"avatar_url":"https://avatars2.githubusercontent.com/u/15367152?v=4","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/conan-io/conan/milestones/21","html_url":"https://github.com/conan-io/conan/milestone/21","labels_url":"https://api.github.com/repos/conan-io/conan/milestones/21/labels","id":2612401,"number":21,"title":"0.26","description":null,"creator":{"login":"memsharded","id":15367152,"avatar_url":"https://avatars2.githubusercontent.com/u/15367152?v=4","gravatar_id":"","url":"https://api.github.com/users/memsharded","html_url":"https://github.com/memsharded","followers_url":"https://api.github.com/users/memsharded/followers","following_url":"https://api.github.com/users/memsharded/following{/other_user}","gists_url":"https://api.github.com/users/memsharded/gists{/gist_id}","starred_url":"https://api.github.com/users/memsharded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memsharded/subscriptions","organizations_url":"https://api.github.com/users/memsharded/orgs","repos_url":"https://api.github.com/users/memsharded/repos","events_url":"https://api.github.com/users/memsharded/events{/privacy}","received_events_url":"https://api.github.com/users/memsharded/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":21,"state":"open","created_at":"2017-06-29T14:51:04Z","updated_at":"2017-08-16T07:06:14Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-08-08T23:12:41Z","updated_at":"2017-08-16T07:06:32Z","closed_at":null,"body":"(Running on Windows; I have not verified on any other system)\r\n\r\nIf exports_sources specifies a file that is read-only, the file that ends up in the \"export_source\" folder in the .conan folder is also made read-only. This is fine for the first execution of `conan create`, but upon the second invocation, an error \"Permission denied\" occurs. Clearing the read only bit on these files resolves the error (the files are overwritten as expected).\r\n\r\nThis is a common configuration in my case because the version control system I'm using (p4) marks files as read only until they are checked out, so most of that folder will be read only at any given time.\r\n\r\nProbably the correct solution here is for the copy operation to _not_ copy the read only bit. One could also just ignore the read-only attribute and forcibly overwrite the files in the export_source folder, but that makes less sense on non-Windows systems. For now, my workaround has been to create a source() method that removes the read only bit, but this is not portable."},"comment":{"url":"https://api.github.com/repos/conan-io/conan/issues/comments/322685113","html_url":"https://github.com/conan-io/conan/issues/1589#issuecomment-322685113","issue_url":"https://api.github.com/repos/conan-io/conan/issues/1589","id":322685113,"user":{"login":"lasote","id":3807515,"avatar_url":"https://avatars1.githubusercontent.com/u/3807515?v=4","gravatar_id":"","url":"https://api.github.com/users/lasote","html_url":"https://github.com/lasote","followers_url":"https://api.github.com/users/lasote/followers","following_url":"https://api.github.com/users/lasote/following{/other_user}","gists_url":"https://api.github.com/users/lasote/gists{/gist_id}","starred_url":"https://api.github.com/users/lasote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lasote/subscriptions","organizations_url":"https://api.github.com/users/lasote/orgs","repos_url":"https://api.github.com/users/lasote/repos","events_url":"https://api.github.com/users/lasote/events{/privacy}","received_events_url":"https://api.github.com/users/lasote/received_events","type":"User","site_admin":false},"created_at":"2017-08-16T07:06:32Z","updated_at":"2017-08-16T07:06:32Z","body":"It was merged and will be available in the next release. Thanks!"}}
{"actor":{"display_login":"lasote"}}