{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/1214","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1214/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1214/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1214/events","html_url":"https://github.com/yarnpkg/yarn/issues/1214","id":183822201,"number":1214,"title":"yarn install overwrites linked modules with cached version","user":{"login":"lukebennett","id":135390,"avatar_url":"https://avatars.githubusercontent.com/u/135390?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebennett","html_url":"https://github.com/lukebennett","followers_url":"https://api.github.com/users/lukebennett/followers","following_url":"https://api.github.com/users/lukebennett/following{/other_user}","gists_url":"https://api.github.com/users/lukebennett/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebennett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebennett/subscriptions","organizations_url":"https://api.github.com/users/lukebennett/orgs","repos_url":"https://api.github.com/users/lukebennett/repos","events_url":"https://api.github.com/users/lukebennett/events{/privacy}","received_events_url":"https://api.github.com/users/lukebennett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-18T22:43:56Z","updated_at":"2016-11-02T12:46:09Z","closed_at":null,"body":"**Do you want to request a _feature_ or report a _bug_?**\n\nBug\n\n**What is the current behavior?**\n\nRunning `yarn install` for an app that has linked modules results in yarn copying its cached version of each module to the symlinked directory, overwriting the local copy in the process.\n\n**If the current behavior is a bug, please provide the steps to reproduce.**\n\nI struggled to reproduce this from scratch, it's possible that it's down to a specific combination of factors with my setup. This involves local copies of private/scoped npm modules `yarn link`ed from an application, and referenced in package.json via `file:../xxx`. The version of the modules yarn has in its cache appears to be from when I first installed and ran it a few days ago (there have been numerous changes to the modules since), so it's possible the problem lies with its caching strategy as much as its installation strategy.\n\nOne observation I've made is that the problem occurs even when using `yarn install --force` to supposedly bypass the cache.\n\nHappy to answer any questions and/or try anything to help pinpoint the problem.\n\n**What is the expected behavior?**\n\nyarn install should skip linked modules like npm intstall does. Performing the same steps above using npm install does not result in this problem.\n\n**Please mention your node.js, yarn and operating system version.**\n\nnode v6.2.2\nyarn v0.16.0\nMac OS X v10.10.5\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/257854163","html_url":"https://github.com/yarnpkg/yarn/issues/1214#issuecomment-257854163","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1214","id":257854163,"user":{"login":"damonmaria","id":1654191,"avatar_url":"https://avatars.githubusercontent.com/u/1654191?v=3","gravatar_id":"","url":"https://api.github.com/users/damonmaria","html_url":"https://github.com/damonmaria","followers_url":"https://api.github.com/users/damonmaria/followers","following_url":"https://api.github.com/users/damonmaria/following{/other_user}","gists_url":"https://api.github.com/users/damonmaria/gists{/gist_id}","starred_url":"https://api.github.com/users/damonmaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damonmaria/subscriptions","organizations_url":"https://api.github.com/users/damonmaria/orgs","repos_url":"https://api.github.com/users/damonmaria/repos","events_url":"https://api.github.com/users/damonmaria/events{/privacy}","received_events_url":"https://api.github.com/users/damonmaria/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T12:46:09Z","updated_at":"2016-11-02T12:46:09Z","body":"Having the same issue. It seems like it's replacing the linked module with the published version. As tho it's installing the package into the directory without realising it's a symlinked package. I don't think yarn's cache is the reason. "}}
{"actor":{"display_login":"damonmaria"}}