{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/101","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/101/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/101/events","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/101","id":123464073,"number":101,"title":"Cygwin fails to create pseudo-symlinks","user":{"login":"TomOne","id":4357973,"avatar_url":"https://avatars.githubusercontent.com/u/4357973?v=3","gravatar_id":"","url":"https://api.github.com/users/TomOne","html_url":"https://github.com/TomOne","followers_url":"https://api.github.com/users/TomOne/followers","following_url":"https://api.github.com/users/TomOne/following{/other_user}","gists_url":"https://api.github.com/users/TomOne/gists{/gist_id}","starred_url":"https://api.github.com/users/TomOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomOne/subscriptions","organizations_url":"https://api.github.com/users/TomOne/orgs","repos_url":"https://api.github.com/users/TomOne/repos","events_url":"https://api.github.com/users/TomOne/events{/privacy}","received_events_url":"https://api.github.com/users/TomOne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-22T11:26:07Z","updated_at":"2015-12-27T18:20:23Z","closed_at":null,"body":"Since the recent change of the installation folder to `$PSScriptRoot\\cygwin`, Cygwin is no longer able to create symlinks (e. g. for `awk`).\r\n\r\nThis was reported here: https://chocolatey.org/packages/Cygwin#comment-2419682542\r\n\r\nPossible workaround: Switch back to `$env:ChocolateyBinRoot`. But that’s not a really good idea, because binroot is going to be deprecated and makes the package less self contained. In addition, some folks wanted to switch to `$PSScriptRoot` and are certainly not amused if we switch back to binroot."},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/comments/167432438","html_url":"https://github.com/chocolatey/chocolatey-coreteampackages/issues/101#issuecomment-167432438","issue_url":"https://api.github.com/repos/chocolatey/chocolatey-coreteampackages/issues/101","id":167432438,"user":{"login":"iainnicol","id":2117362,"avatar_url":"https://avatars.githubusercontent.com/u/2117362?v=3","gravatar_id":"","url":"https://api.github.com/users/iainnicol","html_url":"https://github.com/iainnicol","followers_url":"https://api.github.com/users/iainnicol/followers","following_url":"https://api.github.com/users/iainnicol/following{/other_user}","gists_url":"https://api.github.com/users/iainnicol/gists{/gist_id}","starred_url":"https://api.github.com/users/iainnicol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iainnicol/subscriptions","organizations_url":"https://api.github.com/users/iainnicol/orgs","repos_url":"https://api.github.com/users/iainnicol/repos","events_url":"https://api.github.com/users/iainnicol/events{/privacy}","received_events_url":"https://api.github.com/users/iainnicol/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T18:20:23Z","updated_at":"2015-12-27T18:20:23Z","body":"The broken symlinks are missing the Windows file attribute called System. I don't know what about the installation directory causes that. But it's definitely this missing attribute which causes the problem:\r\n\r\n```powershell\r\n# Fix one symlink from PowerShell:\r\nPS> $link=\"${env:ProgramData}/chocolatey/lib/cygwin/tools/cygwin/etc/ssl\"\r\nPS> $file.Attributes = 'System'\r\n```\r\n```bash\r\n# Verify the fix from Cygwin bash:\r\n$ file /etc/ssl/certs\r\n/etc/ssl/certs: symbolic link to /usr/ssl/certs\r\n```"}}