brew icon indicating copy to clipboard operation
brew copied to clipboard

Bump resources with livechecks on `brew bump`

Open Bo98 opened this issue 1 year ago • 0 comments

Verification

  • [X] This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

Provide a detailed description of the proposed feature

We support bumping Python resources on brew bump but we should support bumping resources with a livecheck block.

This is probably not too big of the task. The update detection code is already there in livecheck and the resource-replacement code is already there in brew update-python-resources - we just need need to extract the pieces and fit them together.

Unlike brew bump on formulae, we don't want to bump resources that don't have an explicit livecheck block as many have rules on when they should be updated. Repology information should also not be used.

Additionally, it would be great to have an additional opt-in flag that is able to bump resources even when the parent formula hasn't actually updated. We will probably want this for Homebrew/portable-ruby (but probably not in Homebrew/core).

What is the motivation for the feature?

To fully automate the one part of Portable Ruby updating that isn't already

How will the feature be relevant to at least 90% of Homebrew users?

Maintainer effort in the long-term is spent elsewhere on impactful issues

What alternatives to the feature have been considered?

Bump these manually

Bo98 avatar May 31 '24 15:05 Bo98