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,31 @@
Set lock file per context.
TODO: versioning will be added once this feature is stable
$ . ./helpers.sh
$ cat >dune-workspace <<EOF
> (lang dune 3.8)
> (context
> (default
> (lock_dir foo.lock)))
> (context
> (default
> (name foo)
> (lock_dir bar.lock)))
> EOF
$ mkdir foo.lock
$ cat >foo.lock/lock.dune <<EOF
> (lang package 0.1)
> (repositories (complete true))
> EOF
$ cat >foo.lock/test.pkg <<EOF
> (version 0.0.1)
> (build
> (system "echo building from %{context_name}"))
> EOF
$ ln -s foo.lock bar.lock
$ build_pkg test
building from default