This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue