Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

brew cask list in a dir containing installed cask file(s) results in file does not exist error #13525

Closed
IshmaelYavitz opened this issue Sep 1, 2015 · 1 comment

Comments

@IshmaelYavitz
Copy link

I try to use homebrew-cask to install all software. So I create cask files locally.

If I do a brew cask list from a directory containing one of those files, and the cask is still installed, it fails. If do it from a directory that doesn't contain any cask files for installed programs, it succeeds.

In the failure case, brew cask appears to be looking for a file with the correct name but without the .rb extension.

Demo:

 »  (729) 2015-08-31@21:25:46 ishmael@ishcomp-mbp ~/ish-casks> brew cask list
 Error: File '/Users/ishmael/ish-casks/messenger_for_mac_0_1_4' does not exist

 »  (730) 2015-08-31@21:26:13 ishmael@ishcomp-mbp ~/ish-casks> ls -la Messenger*
 -rw-r--r--  1 ishmael  staff  458 Aug 30 16:46 Messenger_for_Mac_0_1_4.rb

 »  (737) 2015-08-31@21:28:00 ishmael@ishcomp-mbp ~/ish-casks> cat Messenger_for_Mac_0_1_4.rb
 cask :v1 => 'Messenger_for_Mac_0_1_4' do
   version '0.1.4'
   sha256 '1b8ea3554aff8a632eb4e39c1b1a2b04e92dfb3a2cc53a805218c3074fac240f'

   url "http://fbmacmessenger.rsms.me/dist/Messenger-0.1.4.1440786644-f3436781b1e02ea1.zip"
 # appcast 'http://brawersoftware.com/appcasts/feeds/ubar/ubar2.xml'
   name 'Messenger for Mac'
   homepage 'http://fbmacmessenger.rsms.me/'
 # license :commercial

   app 'Messenger.app'

 # depends_on :macos => '>= :mavericks'
end

#eof

 »  (731) 2015-08-31@21:26:19 ishmael@ishcomp-mbp ~/ish-casks> cd ..

 »  (732) 2015-08-31@21:26:21 ishmael@ishcomp-mbp ~> brew cask list
bettertouchtool
java6
paintbrush
dterm
karabiner
sizeup
emacs-mac
keyremap4macbook-mountainlion
sourcetree
firefox
macintosh-explorer
steam
honer
messenger_for_mac_0_1_4(!)
sublime-text3
hyperdock
microsoft-intellitype
ubar_2_4_9(!)
intellij-idea-cenumlock_1_0_3(!)
vlc

 »  (733) 2015-08-31@21:26:25 ishmael@ishcomp-mbp ~>

(I doctored the successful output of brew cask list to put individual casks on their on line.)

Output of brew cask list --debug: https://gist.github.com/IshmaelYavitz/bc360e9baade3651a6af

@IshmaelYavitz IshmaelYavitz changed the title brew cask list performed in a directory containing an installed caks file results in brew cask list in a dir containing installed cask file(s) results in file does not exist error Sep 1, 2015
@fanquake fanquake added the core Issue with Homebrew itself rather than with a specific cask. label Sep 1, 2015
@vitorgalvao vitorgalvao added the bug Issue describing a reproducible bug. label Sep 1, 2015
@vitorgalvao
Copy link
Member

Closing as I’ll link to it in a single issue pointing out brew cask list bugs.

@miccal miccal removed bug Issue describing a reproducible bug. core Issue with Homebrew itself rather than with a specific cask. labels Dec 23, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants