Stream: helpdesk (published)

Topic: Dependancy mismatch when trying to add Package that REQUIRES


view this post on Zulip Timothy (Aug 05 2021 at 05:17):

Hello,

I'm trying to add a package ElasticFDA.jl which uses a REQUIRES that has RecipesBase. This seems to be causing me issues (log: http://ix.io/3v2m). The issue seems to be from this line:

ERROR: Unsatisfiable requirements detected for package RecipesBase [3cdcf5f2]:
 RecipesBase [3cdcf5f2] log:
...
 ├─restricted by compatibility requirements with ElasticFDA [f9e31aca] to versions: 0.4.0-0.8.0, leaving only versions: 0.5.0-0.8.0

Why is ElasticFDA restricting the available versions, when no version is mentioned in the REQUIRES file? And is there a way I can tell Pkg to ignore ElasticFDA's restriction on RecipesBase?

view this post on Zulip Mosè Giordano (Aug 05 2021 at 05:34):

Because you're looking at the wrong place, what it rules is the registry: https://github.com/JuliaRegistries/General/blob/bf2a0455bec8ecbe6fc7acb9ab62b6885a967855/E/ElasticFDA/Compat.toml#L10

view this post on Zulip Timothy (Aug 05 2021 at 06:39):

Thanks! Is a way I can get it to try running with a more recent RecipesBase anyway?

view this post on Zulip Mosè Giordano (Aug 05 2021 at 08:48):

real solution? fix the upstream package by opening a pull request re replace the REQUIRE file with an up-to-date Project.toml with proper compat bounds

view this post on Zulip Timothy (Aug 05 2021 at 10:01):

I see. Just as a test/bandaid, is there any way for me to temporarily override this bound?

view this post on Zulip Mosè Giordano (Aug 05 2021 at 10:48):

I said it already: the registry rules :smile: what I do in these cases is to edit the registry locally

view this post on Zulip Mosè Giordano (Aug 05 2021 at 10:49):

actually, I'm not 100% sure whether the registry rules if a package is deved, if that isn't the case you can dev the package locally and fix everything locally (i.e. replace REQUIRE with Project.toml), before submitting the pull request :smile:

view this post on Zulip Timothy (Aug 05 2021 at 11:12):

Ah, locally changing registry rules didn't occur to me!


Last updated: Dec 28 2024 at 04:38 UTC