Skip to content

brew file casklists fails with local variable referenced before assignment #322

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

Open
bearded-bytes opened this issue Feb 14, 2025 · 2 comments

Comments

@bearded-bytes
Copy link

############################################

Starting to check applications for Cask...

############################################

Traceback (most recent call last):
File "/opt/homebrew/bin/brew-file", line 4211, in
sys.exit(main())
File "/opt/homebrew/bin/brew-file", line 4198, in main
b.execute()
File "/opt/homebrew/bin/brew-file", line 3436, in execute
self.check_cask()
File "/opt/homebrew/bin/brew-file", line 3120, in check_cask
all_info = self.helper.get_all_info()
File "/opt/homebrew/bin/brew-file", line 339, in get_all_info
cmd=f'brew info --json=v2 --cask {" ".join(casks)}',
UnboundLocalError: local variable 'casks' referenced before assignment

@rcmdnk
Copy link
Owner

rcmdnk commented Feb 15, 2025

Thanks for the feedback!

I found a bug and fixed it in v10.0.9. Could you please update brew-file and try it?

@rcmdnk
Copy link
Owner

rcmdnk commented Feb 15, 2025

1d69355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants