-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Last digit of formula version number can be omitted when upgrading #16942
Comments
Cannot reproduce:
Please ensure you can reproduce this sort of things with multiple core formulae in future. |
@MikeMcQuaid Thank you for taking a look at this and for all your work on Homebrew. I’m not sure why this wasn’t reproducible (sorry about that!), but having taken a closer look, the nature of (what seems to be) the issue suggests that it may not be possible to reproduce this with core formulae, because there is no core formula with a sufficiently long name. The fundamental issue appears to be that a string that contains a newline is passed to It looks like the affected upgrade message is printed here: oh1 <<~EOS
Upgrading #{Formatter.identifier(formula.full_specified_name)}
#{version_upgrade} #{fi_options.to_a.join(" ")}
EOS
def oh1(title, truncate: :auto)
puts oh1_title(title, truncate:)
end
title = Tty.truncate(title.to_s) if $stdout.tty? && !verbose && truncate == :auto In this case, the
That’s 68 characters (note the space character after the version number on the 2nd line). However, there are 5 more characters after Characters
A common terminal width is 80 characters (the default width in |
@nwhetsell We'd review a PR to make the second line of the |
Ideally we wouldn't count non-printable characters when deciding where to truncate strings but that's not the main issue here. |
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
Upgrade a formula (lilypond-unstable) from a non-Homebrew tap (https://github.com/nwhetsell/homebrew-lilypond).
What happened (include all command output)?
The last digit of the new version number was omitted (under
==> Upgrading nwhetsell/lilypond/lilypond-unstable
)What did you expect to happen?
The full version number of the formula to be displayed.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: