Skip to content

Commit

Permalink
dune subst test for directory containing just a .opam file (#11291)
Browse files Browse the repository at this point in the history
* Issue 11290

Signed-off-by: Mark Elvers <[email protected]>

* Include test output

Signed-off-by: Marek Kubica <[email protected]>

---------

Signed-off-by: Mark Elvers <[email protected]>
Signed-off-by: Marek Kubica <[email protected]>
Co-authored-by: Marek Kubica <[email protected]>
  • Loading branch information
mtelvers and Leonidas-from-XIV authored Jan 23, 2025
1 parent c18fe03 commit e1c9bdc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/blackbox-tests/test-cases/github11290.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Running `dune subst` should succeed in a directory containing just a `.opam` file.
Regression test for https://github.com/ocaml/dune/issues/11290

$ cat > foo.opam << EOF
> authors: [ "John Doe <john@doe.com>" ]
> EOF

$ dune subst
File ".", line 1, characters 0-0:
Error: There is no dune-project file in the current directory, please add one
with a (name <name>) field in it.
Hint: 'dune subst' must be executed from the root of the project.
[1]

0 comments on commit e1c9bdc

Please sign in to comment.