CompatHelper.jl icon indicating copy to clipboard operation
CompatHelper.jl copied to clipboard

[FR] Ignore a given package

Open theogf opened this issue 4 years ago • 3 comments

When CompatHelper is used for subdirs, e.g. docs or eventual examples, one wants to use the latest commit version of the current PR or of master/main from the parent repo/package. Therefore putting a compat for the parent package does not makes sense. A solution would be to pass a list of packages to ignore when running CompatHelper.jl, maybe a blacklist keyword?

theogf avatar Feb 01 '22 11:02 theogf

As a short-term workaround, if you put a compat entry of the form e.g.

[compat]
Foo = ">= 1.2.3"

Then CompatHelper won't make any PRs to modify the compat entry for Foo.

DilumAluthge avatar Feb 01 '22 17:02 DilumAluthge

My problem is that I would like to not put any compact so that the GH actions for creating the docs and other things use the dev version of the package.

theogf avatar Feb 01 '22 17:02 theogf

a blacklist keyword would indeed be nice.

The propoesd workaround does not set an uper-bound and hence would not work if I don't want to support a new breaking version of a dependency (for lack of bandwidth to upgrade or other reasons).

A few options off the top of my head:

  • use a blacklist keyword an support a compat-settings.yml file that can be put in the the repository to pass the list of blacklisted packages to CompatHelper.jl
  • do not open a PR if the version is specified in the form < 0.3
  • do not open the PR if there's a similar one (either open or closed)

lucaferranti avatar Oct 07 '23 13:10 lucaferranti