{"action":"created","issue":{"url":"https://api.github.com/repos/github/gitignore/issues/1765","labels_url":"https://api.github.com/repos/github/gitignore/issues/1765/labels{/name}","comments_url":"https://api.github.com/repos/github/gitignore/issues/1765/comments","events_url":"https://api.github.com/repos/github/gitignore/issues/1765/events","html_url":"https://github.com/github/gitignore/pull/1765","id":118431991,"number":1765,"title":"Fix ignore rule for Dart packages symlinks","user":{"login":"hermanbergwerf","id":4458965,"avatar_url":"https://avatars.githubusercontent.com/u/4458965?v=3","gravatar_id":"","url":"https://api.github.com/users/hermanbergwerf","html_url":"https://github.com/hermanbergwerf","followers_url":"https://api.github.com/users/hermanbergwerf/followers","following_url":"https://api.github.com/users/hermanbergwerf/following{/other_user}","gists_url":"https://api.github.com/users/hermanbergwerf/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanbergwerf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanbergwerf/subscriptions","organizations_url":"https://api.github.com/users/hermanbergwerf/orgs","repos_url":"https://api.github.com/users/hermanbergwerf/repos","events_url":"https://api.github.com/users/hermanbergwerf/events{/privacy}","received_events_url":"https://api.github.com/users/hermanbergwerf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-23T17:35:30Z","updated_at":"2015-11-23T20:39:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/gitignore/pulls/1765","html_url":"https://github.com/github/gitignore/pull/1765","diff_url":"https://github.com/github/gitignore/pull/1765.diff","patch_url":"https://github.com/github/gitignore/pull/1765.patch"},"body":"This fixes the ignore rule for Dart (https://www.dartlang.org/) packages directories. Dart uses a tool called `pub` for dependency management. All dependencies are stored in the repository root in a directory called `packages`. According to https://www.dartlang.org/tools/private-files.html the packages directory which holds the dependencies should be ignored (of course this also makes a lot of sense). Dart makes a symlink to this packages directory in all directories in your repositories. Since Git treats symlinks as files, the trailing slash on this line should be removed so not only the root packages directory but also all symlinks to this directory are ignored. "},"comment":{"url":"https://api.github.com/repos/github/gitignore/issues/comments/159057832","html_url":"https://github.com/github/gitignore/pull/1765#issuecomment-159057832","issue_url":"https://api.github.com/repos/github/gitignore/issues/1765","id":159057832,"user":{"login":"hermanbergwerf","id":4458965,"avatar_url":"https://avatars.githubusercontent.com/u/4458965?v=3","gravatar_id":"","url":"https://api.github.com/users/hermanbergwerf","html_url":"https://github.com/hermanbergwerf","followers_url":"https://api.github.com/users/hermanbergwerf/followers","following_url":"https://api.github.com/users/hermanbergwerf/following{/other_user}","gists_url":"https://api.github.com/users/hermanbergwerf/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanbergwerf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanbergwerf/subscriptions","organizations_url":"https://api.github.com/users/hermanbergwerf/orgs","repos_url":"https://api.github.com/users/hermanbergwerf/repos","events_url":"https://api.github.com/users/hermanbergwerf/events{/privacy}","received_events_url":"https://api.github.com/users/hermanbergwerf/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T20:39:51Z","updated_at":"2015-11-23T20:39:51Z","body":"I believe `packages` should both match the directory and the symlink in any directory. Otherwise I'm not an expert on older Dart versions (I just started using it)."}}