{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/docker/issues/17906","labels_url":"https://api.github.com/repos/docker/docker/issues/17906/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/17906/comments","events_url":"https://api.github.com/repos/docker/docker/issues/17906/events","html_url":"https://github.com/docker/docker/issues/17906","id":116356397,"number":17906,"title":"COPY cache not invalidating correctly with recursive copy","user":{"login":"samuelcolvin","id":4039449,"avatar_url":"https://avatars.githubusercontent.com/u/4039449?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelcolvin","html_url":"https://github.com/samuelcolvin","followers_url":"https://api.github.com/users/samuelcolvin/followers","following_url":"https://api.github.com/users/samuelcolvin/following{/other_user}","gists_url":"https://api.github.com/users/samuelcolvin/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelcolvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelcolvin/subscriptions","organizations_url":"https://api.github.com/users/samuelcolvin/orgs","repos_url":"https://api.github.com/users/samuelcolvin/repos","events_url":"https://api.github.com/users/samuelcolvin/events{/privacy}","received_events_url":"https://api.github.com/users/samuelcolvin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-11T15:22:18Z","updated_at":"2015-11-11T15:22:18Z","closed_at":null,"body":"my dockerfile has \r\n\r\n```dockerfile\r\n...\r\nCOPY code/ /src/code/\r\n...\r\n```\r\n\r\nwhere `code` is a directory containing code files (including sub directories).\r\n\r\nMaking changes to these files is **not** invalidating the cache, and `docker build` is showing:\r\n\r\n```\r\nStep 11 : COPY code/ /src/code/\r\n ---> Using cache\r\n ---> 638bbc8d86ff\r\n```\r\n\r\nThis problem is contrary to all the other issues in this area which complain invalidation is too agressive. IMHO this is much more serious as the resultant image is objectively wrong: it contains old versions of the code.\r\n\r\nI've tried both `COPY` and `ADD` with the same problem, I'm on `Docker version 1.9.0, build 76d6bc9`, Ubuntu 15.10."}}