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,30 @@
A workspace with a package that exists in the lock file and in the workspace
shouldn't be allowed (for now)
$ . ./helpers.sh
$ cat >dune-project <<EOF
> (lang dune 3.11)
> EOF
$ cat > mypkg.opam <<EOF
> opam-version: "2.0"
> EOF
$ mkdir dune.lock
$ cat >dune.lock/lock.dune <<EOF
> (lang package 0.1)
> EOF
$ touch dune.lock/mypkg.lock
$ dune build
It should also fail when we define the package only in the dune-project file:
$ rm mypkg.opam
$ cat >>dune-project <<EOF
> (package
> (allow_empty)
> (name mypkg))
> EOF
$ dune build