{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/822","labels_url":"https://api.github.com/repos/dotnet/cli/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/822/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/822/events","html_url":"https://github.com/dotnet/cli/issues/822","id":126371431,"number":822,"title":"Issue when building corert","user":{"login":"manu-silicon","id":13194660,"avatar_url":"https://avatars.githubusercontent.com/u/13194660?v=3","gravatar_id":"","url":"https://api.github.com/users/manu-silicon","html_url":"https://github.com/manu-silicon","followers_url":"https://api.github.com/users/manu-silicon/followers","following_url":"https://api.github.com/users/manu-silicon/following{/other_user}","gists_url":"https://api.github.com/users/manu-silicon/gists{/gist_id}","starred_url":"https://api.github.com/users/manu-silicon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manu-silicon/subscriptions","organizations_url":"https://api.github.com/users/manu-silicon/orgs","repos_url":"https://api.github.com/users/manu-silicon/repos","events_url":"https://api.github.com/users/manu-silicon/events{/privacy}","received_events_url":"https://api.github.com/users/manu-silicon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-13T08:59:37Z","updated_at":"2016-01-14T08:19:21Z","closed_at":null,"body":"I currently cannot build corert if in the cross folder I have build  the rootfs folder. The issue is the dotnet restore command. Even without executing the restore but just querying the help it will fail. For example, in the ```home/Microsoft/corert/``` folder I'm executing the following:\r\n\r\n```\r\n./bin/tools/cli/bin/dotnet restore --help\r\n\r\nUsage: dnu restore [arguments] [options]\r\n\r\nArguments:\r\n  [root]  List of projects and project folders to restore. Each value can be: a path to a project.json or global.json file, or a folder to recursively search for project.json files.\r\n\r\nOptions:\r\n  -s|--source <FEED>          A list of packages sources to use for this command\r\n  -f|--fallbacksource <FEED>  A list of packages sources to use as a fallback\r\n  -p|--proxy <ADDRESS>        The HTTP proxy to use when retrieving packages\r\n  --no-cache                  Do not use local cache\r\n  --packages                  Path to restore packages\r\n  --ignore-failed-sources     Ignore failed remote sources if there are local packages meeting version requirements\r\n  --quiet                     Do not show output such as HTTP request/cache information\r\n  --parallel                  Restores in parallel when more than one project.json is discovered.\r\n  --lock                      Creates dependencies file with locked property set to true. Overwrites file if it exists.\r\n  --unlock                    Creates dependencies file with locked property set to false. Overwrites file if it exists.\r\n  --runtime <RID>             List of runtime identifiers to restore for\r\n  -?|-h|--help                Show help information\r\nAccess to the path '/home/Microsoft/corert/cross/rootfs/arm64/usr/lib/ssl/private' is denied.\r\n```\r\n\r\nAs you can see it fails because in the cross folder the path ```/home/Microsoft/corert/cross/rootfs/arm64/usr/lib/ssl/private``` is a folder owned by root.\r\n\r\nThis is currently blocking my work on corert to cross compile on arm and arm64. \r\n\r\nThanks for looking into this\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/171569256","html_url":"https://github.com/dotnet/cli/issues/822#issuecomment-171569256","issue_url":"https://api.github.com/repos/dotnet/cli/issues/822","id":171569256,"user":{"login":"piotrpMSFT","id":2379589,"avatar_url":"https://avatars.githubusercontent.com/u/2379589?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrpMSFT","html_url":"https://github.com/piotrpMSFT","followers_url":"https://api.github.com/users/piotrpMSFT/followers","following_url":"https://api.github.com/users/piotrpMSFT/following{/other_user}","gists_url":"https://api.github.com/users/piotrpMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrpMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrpMSFT/subscriptions","organizations_url":"https://api.github.com/users/piotrpMSFT/orgs","repos_url":"https://api.github.com/users/piotrpMSFT/repos","events_url":"https://api.github.com/users/piotrpMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/piotrpMSFT/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T08:19:21Z","updated_at":"2016-01-14T08:19:21Z","body":"is `/home/Microsoft/corert/cross/rootfs/arm64/usr/lib/ssl/private` the folder you are trying to restore? How is it getting into the picture?\r\n\r\nIs the bug that you are running restore from a parent folder of `private`, `/home/Microsoft/corert/` for example, and restore is failing because it is probing for all project.json files under that directory, failing to  probe into the directory in question?"}}