Debian Codegraph @

test/blackbox-tests/test-cases/pkg/ocamllsp/dev-tool-ocamllsp-no-ocaml-lockfile.t

raw
1 Exercise the behaviour of "dune tools exec ocamllsp" when the lockdir
2 doesn't contain a lockfile for the "ocaml" package.
3
4 $ cat > dune-project <<EOF
5 > (lang dune 3.16)
6 >
7 > (package
8 > (name foo)
9 > (allow_empty))
10 > EOF
11
12 $ make_lockdir
13
14 $ dune tools exec ocamllsp
15 Error: The lockdir doesn't contain a lockfile for the package "ocaml".
16 Hint: Add a dependency on "ocaml" to one of the packages in dune-project and
17 then run 'dune pkg lock'
18 [1]