Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Dealing with unresolvable versions #6

Open
ajwheeler opened this issue Feb 14, 2024 · 6 comments
Open

Dealing with unresolvable versions #6

ajwheeler opened this issue Feb 14, 2024 · 6 comments

Comments

@ajwheeler
Copy link

Say your compat looks like this:

[compat]
A = "1.5"
B = "2.2"

but package B's compat is

[compat]
A = "1.6"

Does applying this action yield unresolvable package versions?

I think this may be the issue that I'm having here, for A=ForwardDiff and B=SpecialFunctions.

@simonmandlik
Copy link

I'm dealing with a similar problem (the run is here).

I have Statistics = 1 in Project.toml. Since this is a really stable package without much versions that ships with julia, I do not care much about individual versions and want to use whichever version is compatible with the current julia version. However, this action forces Statistics to be exactly 1.0, which AFAIK doesn't even exist.

@cjdoris
Copy link
Owner

cjdoris commented Feb 17, 2024

@ajwheeler yes that's correct, unless there is some older version of B which has a lower compat on A.

@cjdoris
Copy link
Owner

cjdoris commented Feb 17, 2024

@simonmandlik you should use the skip option, see the readme.

@simonmandlik
Copy link

@cjdoris thank you. I have seen skip in the readme, but I was wondering if the action could use the lowest existing version compatible with compat. This would require cloning the registry and is not that trivial I guess. So if I have A = "1" in the compat, it will be tested strictly with 1.0.0 version and if it doesn't exist it will fail?

@cjdoris
Copy link
Owner

cjdoris commented Feb 17, 2024

As it says in the readme, if you have A = "1" this gets turned into A = "~1.0.0" by this action, meaning that any 1.0.* version could be installed. It would be very unusual for 1.0.* to not exist.

@cjdoris
Copy link
Owner

cjdoris commented Feb 17, 2024

BTW this action has moved to https://github.com/julia-actions/julia-downgrade-compat, I'm about to archive this repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants