This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,32 @@
Testing how the solver handles cycles in an opam repository.
$ . ./helpers.sh
$ mkrepo
$ mkpkg a <<'EOF'
> depends: [ "b" ]
> EOF
$ mkpkg b <<'EOF'
> depends: [ "c" ]
> EOF
$ mkpkg c <<'EOF'
> depends: [ "a" ]
> EOF
Solver doesn't complain about cycles.
$ solve a
Solution for dune.lock:
- a.0.0.1
- b.0.0.1
- c.0.0.1
$ solve b
Solution for dune.lock:
- a.0.0.1
- b.0.0.1
- c.0.0.1
$ solve c
Solution for dune.lock:
- a.0.0.1
- b.0.0.1
- c.0.0.1