Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dune subst test for directory containing just a .opam file #11291

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Loading