mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/pkg/solve-lockdir-without-context.t
2025-11-11 02:07:51 +01:00

33 lines
635 B
Perl

This test checks whether a custom lock dir can be created, without having to
specify it in the context.
$ . ./helpers.sh
$ mkrepo
$ mkpkg a <<EOF
> EOF
$ mkpkg b <<EOF
> EOF
$ cat > dune-workspace <<EOF
> (lang dune 3.12)
> (lock_dir
> (path foo.lock)
> (repositories mock))
> (repository
> (name mock)
> (url "file://$(pwd)/mock-opam-repository"))
> EOF
$ cat > dune-project <<EOF
> (lang dune 3.12)
> (package
> (name foo)
> (depends a b))
> EOF
Specifying the directory to the lock command should work:
$ dune pkg lock foo.lock
Solution for foo.lock:
- a.0.0.1
- b.0.0.1