-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
extract: use downcased version in filename #11440
Conversation
Formula filenames are required to be lowercase, so the extract command should downcase version before using it to construct the filename. I noticed this while extracting tbb@2020, which has version 2020_U3 and resulted in tbb@2020_U3.rb
Review period will end on 2021-05-27 at 06:33:02 UTC. |
I suppose that we may also want to add a diagnostic to complain about capital letters in formula filenames, since it took me a little while to figure out what the problem was that led to this fix |
What were you seeing when it had an uppercase character? An error? |
I was trying to build bottles for
I couldn't pinpoint the exact problem, but it may be related to a |
Review period ended. |
Hmm yeah it should probably handled a bit better. This fix is correct to make anyway. |
|
Nice work here @scpeters! |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Formula filenames are required to be lowercase, so the
brew extract
command should downcase the version before using it to construct the filename. I noticed this while performingbrew extract tbb@2020
, which has version 2020_U3 and resulted in a formula with filenametbb@2020_U3.rb