Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set compat version for specific package for whole environment #4060

Open
SimeonEhrig opened this issue Oct 28, 2024 · 1 comment
Open

set compat version for specific package for whole environment #4060

SimeonEhrig opened this issue Oct 28, 2024 · 1 comment

Comments

@SimeonEhrig
Copy link

I have the following problem. I develop package A, which changes it's version from 1.0.0 to 2.0.0 because a breaking changes. Now I want to test package A with package B. Package B has as dependency to package A and the compat requires package A==1.0.0. If I add package B, I get the following error:

ERROR: Unsatisfiable requirements detected for package B [...]

A the moment, the solution is to clone the repository of package B, modify the compat section int the Project.toml and add package B as development package. Is there a easy or common solution of my problem?

Also this is only the minimum use case of my problem. For example, we have also a package C, which has package B as dependency and therefore package A is a implicit dependency. Or we have week circular dependencies, because Package A uses Package B in test extra section.

Therefore it would pretty helpful to tell the dependency resolver, that it should use version 2.0.0 of package A, if it finds as dependency of any package, which should be added to the environment.

@aplavin
Copy link
Contributor

aplavin commented Nov 13, 2024

Very useful indeed! There even were attempts to add this functionality to Pkg before:
#2285
#1607

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

No branches or pull requests

2 participants