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

Using capsule and capsule_supplement causes dependency conflicts #13

Open
joeljuca opened this issue Dec 12, 2024 · 1 comment
Open

Comments

@joeljuca
Copy link

I just tried to use capsule, capsule_ecto, and capsule_supplement in a project and got the following error:

Dependencies have diverged:
* capsule (Hex package)
  the dependency capsule in mix.exs is overriding a child dependency:

  > In mix.exs:
    {:capsule, "~> 0.10.0", [env: :prod, hex: "capsule", repo: "hexpm"]}

  > In deps/capsule_supplement/mix.exs:
    {:capsule, [env: :prod, git: "https://github.com/elixir-capsule/capsule.git"]}

  Ensure they match or specify one of the above in your deps and set "override: true"
** (Mix) Can't continue due to errors on dependencies

Shouldn't it be pulling capsule from Hex instead of GitHub?

@tfwright
Copy link
Contributor

The reason it's pulling from github is likely that it's dependent on unreleased code, although it's been a while so I can't be sure. I agree it would be better to release a version the corresponds to latest capsule release, which is how it's handled in capsule_ecto.

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