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

circular dependency between unmark.cli and notty #45

Open
edwintorok opened this issue Jan 30, 2023 · 0 comments
Open

circular dependency between unmark.cli and notty #45

edwintorok opened this issue Jan 30, 2023 · 0 comments

Comments

@edwintorok
Copy link

I tried to run the benchmark, which depends on the 'unmark' package that is not on opam.
I tried pinning it, which went fine:
opam pin add unmark https://github.com/pqwy/unmark.git

Then tried running the benchmark:

dune exec ./speed.exe
Entering directory '/var/home/edwin/git/notty'
Error: Conflict between the following libraries:
- "notty" in _build/default/src
- "notty" in /var/home/edwin/.opam/5.0.0/lib/notty
  -> required by library "unmark.cli" in
     /var/home/edwin/.opam/5.0.0/lib/unmark
-> required by executable speed in benchmarks/dune:2
-> required by _build/default/benchmarks/speed.exe

Lets try removing notty and use the one I'm just building locally with dune, but that removes unmark too:

opam remove notty
[WARNING] Opam package conf-gles2.1 depends on the following system package that can no longer be found: mesa-libGLES-devel
cd ..
The following actions will be performed:
  ⊘ remove unmark ~dev* [uses notty]
  ⊘ remove notty  0.2.3
===== ⊘ 2 =====
Do you want to continue? [Y/n] y

And since unmark doesn't use dune I can't just drop it in a subdir to build it together.

Is there a way to break the cycle?

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

1 participant