Cyclic dependencies - trouble publishing my first OPAM package

I’ve got a simple library I’m trying to publish on OPAM. I’m using ocaml-ci-scripts to build and test my code on travisci.

Looking at the logs, it looks like it installs correctly, but the last command (and I don’t know what this step is meant to be doing) tells me I’ve got cyclical dependencies.

  1. How can the first install go through seemingly cleanly if there are cyclical dependencies?
  2. Any suggestions on how I can resolve this issue? (Or really just a suggestion on what I should investigate)

Thanks

It’s a known issue that should be resolved soon: https://github.com/ocaml/dune/issues/483
It happens when opam installs the test dependencies.

There is already an outstanding PR to solve it

1 Like

The PR solving it in the opam-repository is at https://github.com/ocaml/opam-repository/pull/11376 which I merged 4 hours ago, you shouldn’t observe this issue anymore. (thx @yomimono for that PR!)

3 Likes

Oh, nifty, thanks, both of you.