-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Cask was detected as formula with --only-formulae
#897
Comments
No luck, see https://github.com/muzimuzhi/homebrew-texstudio-beta/actions/runs/4589702164/jobs/8104777253
|
Hmm. Odd. Can you try going back a few months to see if you can find a commit where this was working properly? |
After setting some env vars I managed to run In muzimuzhi/homebrew-texstudio-beta@bb7eac7 I reverted Homebrew/brew@f280ce0, then the checks passed. Currently,
I'll report this to https://github.com/Homebrew/brew. PS: Adding an empty |
I think I need a better use case that's easier to run locally and involves a third-party tap and |
IMO this is the type of thing where we're unlikely to fix this ourselves but will review and help you with a PR. We don't support using |
@MikeMcQuaid Perhaps this should be stated in doc for It seems the |
Came across an easier idea: in |
This seems like a good idea 👍🏻 |
Actually, thinking about it more: I've found a one-liner test-bot solution based on the fact that casks can only ever be in one directory. PR opened. |
@MikeMcQuaid Thank you! #899 does fix my original problem, see this workflow run. Still I think diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb
index 3439ec0c9..fb09122cb 100644
--- a/Library/Homebrew/tap.rb
+++ b/Library/Homebrew/tap.rb
@@ -570,7 +570,7 @@ class Tap
file = file.expand_path(path)
return false unless ruby_file?(file)
- file.to_s.start_with?("#{formula_dir}/")
+ file.to_s.start_with?("#{formula_dir}/") && !file.to_s.start_with?("#{cask_dir}/")
end
# return true if given path would present a {Cask} file in this {Tap}. |
@muzimuzhi Would review a PR for that! |
I have a tap providing casks only. Today when I opened muzimuzhi/homebrew-texstudio-beta#16 to update cask
texstudio-beta
, it was detected as formula hence the workflow failed with logIn the past, the log of such step looked like
The text was updated successfully, but these errors were encountered: