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

test: missing opam file now causes build failure #8662

Merged
merged 2 commits into from
Sep 19, 2023
Merged
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
21 changes: 21 additions & 0 deletions test/blackbox-tests/test-cases/missing-opam-generated-file.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
This shows a difference since #8518: we set up a project with a generated opam
file. If the resulting file is not present in the repository (or if it has been
renamed to just `opam` as in this example), we now fail.

A related issue happens when `pkg.opam` exists but is not up to date. The
instruction in the opam file would previously consider the original version but
will overwrite `pkg.opam`. Now it does not update the file.

$ cat > dune-project << EOF
> (lang dune 1.10)
> (generate_opam_files)
> (package
> (name pkg))
> EOF

$ touch opam

$ dune build -p pkg @install
Error: No rule found for pkg.opam
-> required by alias install
[1]
Loading