{"action":"closed","issue":{"url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/1817","labels_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/1817/labels{/name}","comments_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/1817/comments","events_url":"https://api.github.com/repos/caskroom/homebrew-cask/issues/1817/events","html_url":"https://github.com/caskroom/homebrew-cask/issues/1817","id":23065955,"number":1817,"title":"detect when installed casks self-update and change the version appropriately","user":{"login":"skivvies","id":475147,"avatar_url":"https://avatars.githubusercontent.com/u/475147?v=3","gravatar_id":"","url":"https://api.github.com/users/skivvies","html_url":"https://github.com/skivvies","followers_url":"https://api.github.com/users/skivvies/followers","following_url":"https://api.github.com/users/skivvies/following{/other_user}","gists_url":"https://api.github.com/users/skivvies/gists{/gist_id}","starred_url":"https://api.github.com/users/skivvies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skivvies/subscriptions","organizations_url":"https://api.github.com/users/skivvies/orgs","repos_url":"https://api.github.com/users/skivvies/repos","events_url":"https://api.github.com/users/skivvies/events{/privacy}","received_events_url":"https://api.github.com/users/skivvies/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-11-21T13:21:52Z","updated_at":"2015-05-05T00:47:48Z","closed_at":"2015-05-05T00:47:48Z","body":"I installed the mailplane cask some time ago and it ended up in /opt/homebrew-cask/Caskroom/mailplane/3.0_755. Since then Mailplane's built-in auto-update kicked in, so that now the version in the 3.0_755 directory is actually 3.1.0, but cask still thinks it's version 3.0_755.\r\n\r\nThere are plenty of other casks for self-updating software that can have this problem too (e.g. adium, vlc, tunnelblick, many others). Note that self-updating casks that install to a version such as \"latest\" or \"stable\" don't have this problem (e.g. firefox, google-chrome, spotify), but from #1798 I understand it's only possible to do this for software that provides a url to download the latest version.\r\n\r\nWould be great if we could detect when a cask installed to \\<old_version\\> has self-updated, and update the cask installation to reflect that it's actually \\<new_version\\> to prevent confusion and leaving the cask in an inconsistent state.\r\n\r\nIn the meantime we should just document this behavior and tell users to not use installed casks' built-in self-updating when prompted if they want to avoid this."}}