Closed mbirth closed 6 months ago
Hi @mbirth, this is the expected behaviour.
font-b612
is a versioned font, which means we can easily detect when there is a new release available, and only update in these instances.
font-b612-mono
is unversioned, so we cannot detect when it has changed. The --greedy
is named "greedy" for a reason, because it may upgrade things that don't "need" to be.
Hi @bevanjkay! But font-b612-mono
is pulling from a Git repository which is versioned per definition. Is there really no way for Homebrew to detect the commit hash?
It is "possible", but as far as I know, it is impractical at the scale required in these reports because of GitHub's rate API rate limiting.
From looking at the existing livechecks, it should be possible to use the normal "Git" strategy without going via GitHub's API. So ls-remote --heads
instead of the currently hardcoded --tags
- and then selecting the line for the desired branch.
I think in this case we need to check the latest commit for the specific files, because the repository hosts all of the fonts available at Google Fonts.
Verification
--force
.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
With
font-b612-mono
installed, whenever I do abrew upgrade --greedy
, it reinstalls the font even though there's no new commit in the originating repo. This doesn't happen with other fonts likefont-b612
.Command that failed
brew upgrade --greedy
Output of command with
--verbose --debug
Output of
brew doctor
andbrew config
Output of
brew tap