Skip to content

Commit

Permalink
test: reproduce #8630
Browse files Browse the repository at this point in the history
Demonstrate that looking up a package breaks rule loading in the entire
directory.

Signed-off-by: Rudi Grinberg <[email protected]>

<!-- ps-id: 3acfde16-8547-4bc4-9aa5-bef4926acdae -->
  • Loading branch information
rgrinberg committed Oct 15, 2023
1 parent e6a5199 commit f282f08
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/blackbox-tests/test-cases/eager-package-lookup.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
When a package fails to resolve, it shouldn't prevent rules from loading in a
directory.

Github issue #8630

$ cat >dune-project <<EOF
> (lang dune 3.11)
> (using dune_site 0.1)
> (package (name a))
> EOF

$ cat >dune <<EOF
> (install
> (section (site (foobarpkg baz)))
> (files foo))
> (rule (with-stdout-to foo (echo bar)))
> EOF

$ dune build foo
File "dune", line 2, characters 16-31:
2 | (section (site (foobarpkg baz)))
^^^^^^^^^^^^^^^
Error: The package foobarpkg is not found
[1]

0 comments on commit f282f08

Please sign in to comment.