{"action":"created","issue":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/256","repository_url":"https://api.github.com/repos/BurntSushi/ripgrep","labels_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/256/comments","events_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/256/events","html_url":"https://github.com/BurntSushi/ripgrep/issues/256","id":191861550,"number":256,"title":"Cannot search in symlink","user":{"login":"phiresky","id":2303841,"avatar_url":"https://avatars.githubusercontent.com/u/2303841?v=3","gravatar_id":"","url":"https://api.github.com/users/phiresky","html_url":"https://github.com/phiresky","followers_url":"https://api.github.com/users/phiresky/followers","following_url":"https://api.github.com/users/phiresky/following{/other_user}","gists_url":"https://api.github.com/users/phiresky/gists{/gist_id}","starred_url":"https://api.github.com/users/phiresky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phiresky/subscriptions","organizations_url":"https://api.github.com/users/phiresky/orgs","repos_url":"https://api.github.com/users/phiresky/repos","events_url":"https://api.github.com/users/phiresky/events{/privacy}","received_events_url":"https://api.github.com/users/phiresky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-27T13:30:32Z","updated_at":"2016-11-28T14:10:32Z","closed_at":null,"body":"`db` is a symlink to a directory.\r\n\r\n```\r\n$ rg --version\r\nripgrep 0.3.1\r\n$ rg test db\r\ndb: Is a directory (os error 21)\r\n$ rg test db/\r\n(works as expected)\r\n```\r\n\r\nI would expect it to traverse the symlink in the first example, or at least to show an error message that is less confusing ;)"},"comment":{"url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/comments/263280161","html_url":"https://github.com/BurntSushi/ripgrep/issues/256#issuecomment-263280161","issue_url":"https://api.github.com/repos/BurntSushi/ripgrep/issues/256","id":263280161,"user":{"login":"jFransham","id":1509080,"avatar_url":"https://avatars.githubusercontent.com/u/1509080?v=3","gravatar_id":"","url":"https://api.github.com/users/jFransham","html_url":"https://github.com/jFransham","followers_url":"https://api.github.com/users/jFransham/followers","following_url":"https://api.github.com/users/jFransham/following{/other_user}","gists_url":"https://api.github.com/users/jFransham/gists{/gist_id}","starred_url":"https://api.github.com/users/jFransham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jFransham/subscriptions","organizations_url":"https://api.github.com/users/jFransham/orgs","repos_url":"https://api.github.com/users/jFransham/repos","events_url":"https://api.github.com/users/jFransham/events{/privacy}","received_events_url":"https://api.github.com/users/jFransham/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T14:10:32Z","updated_at":"2016-11-28T14:10:32Z","body":"Running `rg` with `--follow` fixes this issue. It seems like this is intended behaviour, at least to some extent, but it might be slightly unintuitive that `somedir` and `somedir/` act differently. Maybe a fix would be to traverse symbolic links for all input paths, but then respect `--follow` when walking those inputs, but that might not play nice with globbing (like, you might accidentally end up traversing symlinks and causing a loop, and have no way to disable that without manually excluding the path)."}}
{"actor":{"display_login":"jFransham"}}