Skip to content

Commit e2692b3

Browse files
rgrinbergSudha247
authored andcommitted
test: demonstrate that we can't lock when dune is a local package (ocaml#12021)
This overlapping package restriction shouldn't be respected here since dune is already installed when we're locking. Signed-off-by: Rudi Grinberg <[email protected]>
1 parent be65c38 commit e2692b3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Dune is defined in the workspace where we're solving
2+
3+
$ . ./helpers.sh
4+
5+
$ mkrepo
6+
7+
$ mkpkg bar <<EOF
8+
> depends: [ "dune" ]
9+
> EOF
10+
11+
$ mkpkg test-dep <<EOF
12+
> depends: [ "dune" ]
13+
> EOF
14+
15+
$ solve_project <<EOF
16+
> (lang dune 3.19)
17+
> (package
18+
> (name dune)
19+
> (depends (test-dep :with-test)))
20+
> (package
21+
> (name foo)
22+
> (depends bar))
23+
> EOF
24+
Error: Dune does not support packages outside the workspace depending on
25+
packages in the workspace. The package "bar" is not in the workspace but it
26+
depends on the package "dune" which is in the workspace.
27+
[1]

0 commit comments

Comments
 (0)