{"action":"created","issue":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5016","repository_url":"https://api.github.com/repos/travis-ci/travis-ci","labels_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5016/labels{/name}","comments_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5016/comments","events_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5016/events","html_url":"https://github.com/travis-ci/travis-ci/issues/5016","id":113512156,"number":5016,"title":"Files removed in before_cache step were still added to cache unexpectedly","user":{"login":"Atry","id":601530,"avatar_url":"https://avatars.githubusercontent.com/u/601530?v=3","gravatar_id":"","url":"https://api.github.com/users/Atry","html_url":"https://github.com/Atry","followers_url":"https://api.github.com/users/Atry/followers","following_url":"https://api.github.com/users/Atry/following{/other_user}","gists_url":"https://api.github.com/users/Atry/gists{/gist_id}","starred_url":"https://api.github.com/users/Atry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atry/subscriptions","organizations_url":"https://api.github.com/users/Atry/orgs","repos_url":"https://api.github.com/users/Atry/repos","events_url":"https://api.github.com/users/Atry/events{/privacy}","received_events_url":"https://api.github.com/users/Atry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/team%20blue","name":"team blue","color":"0047ab"},{"url":"https://api.github.com/repos/travis-ci/travis-ci/labels/travis-cookbooks","name":"travis-cookbooks","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"BanzaiMan","id":25666,"avatar_url":"https://avatars.githubusercontent.com/u/25666?v=3","gravatar_id":"","url":"https://api.github.com/users/BanzaiMan","html_url":"https://github.com/BanzaiMan","followers_url":"https://api.github.com/users/BanzaiMan/followers","following_url":"https://api.github.com/users/BanzaiMan/following{/other_user}","gists_url":"https://api.github.com/users/BanzaiMan/gists{/gist_id}","starred_url":"https://api.github.com/users/BanzaiMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BanzaiMan/subscriptions","organizations_url":"https://api.github.com/users/BanzaiMan/orgs","repos_url":"https://api.github.com/users/BanzaiMan/repos","events_url":"https://api.github.com/users/BanzaiMan/events{/privacy}","received_events_url":"https://api.github.com/users/BanzaiMan/received_events","type":"User","site_admin":false},"milestone":null,"comments":22,"created_at":"2015-10-27T05:56:43Z","updated_at":"2016-05-05T13:40:58Z","closed_at":null,"body":"In the job https://travis-ci.org/ThoughtWorksInc/auto-parser/jobs/87606777 , I removed some files at `before_cache` step:\r\n\r\n```\r\nfind $HOME/.ivy2 -name 'ivydata-*.properties' | xargs rm\r\n```\r\n\r\nUnexpectedly, these file were still added to cache:\r\n\r\n```\r\nchange detected:\r\n/home/travis/.ivy2/cache/com.jcraft/jsch/ivydata-0.1.46.properties\r\n/home/travis/.ivy2/cache/commons-codec/commons-codec/ivydata-1.2.properties\r\n/home/travis/.ivy2/cache/commons-httpclient/commons-httpclient/ivydata-3.1.properties\r\n/home/travis/.ivy2/cache/commons-logging/commons-logging/ivydata-1.0.4.properties\r\n/home/travis/.ivy2/cache/com.thoughtworks.paranamer/paranamer/ivydata-2.6.properties\r\n/home/travis/.ivy2/cache/com.thoughtworks.paranamer/paranamer-parent/ivydata-2.6.properties\r\n/home/travis/.ivy2/cache/jline/jline/ivydata-1.0.properties\r\n/home/travis/.ivy2/cache/jline/jline/ivydata-2.11.properties\r\n/home/travis/.ivy2/cache/jline/jline/ivydata-2.12.properties\r\n/home/travis/.ivy2/cache/net.java.dev.jna/jna/ivydata-3.2.3.properties\r\n/home/travis/.ivy2/cache/org.apache/apache/ivydata-7.properties\r\n/home/travis/.ivy2/cache/org.apache.ivy/ivy/ivydata-2.3.0.properties\r\n/home/travis/.ivy2/cache/org.apache.ivy/ivy/ivydata-2.3.0-rc1.properties\r\n/home/travis/.ivy2/cache/org.codehaus/codehaus-parent/\r\n```"},"comment":{"url":"https://api.github.com/repos/travis-ci/travis-ci/issues/comments/217157167","html_url":"https://github.com/travis-ci/travis-ci/issues/5016#issuecomment-217157167","issue_url":"https://api.github.com/repos/travis-ci/travis-ci/issues/5016","id":217157167,"user":{"login":"bdarfler","id":197776,"avatar_url":"https://avatars.githubusercontent.com/u/197776?v=3","gravatar_id":"","url":"https://api.github.com/users/bdarfler","html_url":"https://github.com/bdarfler","followers_url":"https://api.github.com/users/bdarfler/followers","following_url":"https://api.github.com/users/bdarfler/following{/other_user}","gists_url":"https://api.github.com/users/bdarfler/gists{/gist_id}","starred_url":"https://api.github.com/users/bdarfler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdarfler/subscriptions","organizations_url":"https://api.github.com/users/bdarfler/orgs","repos_url":"https://api.github.com/users/bdarfler/repos","events_url":"https://api.github.com/users/bdarfler/events{/privacy}","received_events_url":"https://api.github.com/users/bdarfler/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T13:40:58Z","updated_at":"2016-05-05T13:40:58Z","body":"SBT itself suggests removing the `*.lock` and `ivydata-*.properties` files\r\n\r\nhttp://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html#%28Experimental%29+Reusing+Ivy+cache\r\n\r\nso those should be safe."}}