Skip to content

Commit 582750f

Browse files
authored
Fix dune files for opam-repo checks (#2263)
1 parent 95ee0a1 commit 582750f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

dune-project

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
dune
8585
(ocamlformat-lib
8686
(= :version))
87+
(ocamlformat-rpc-lib
88+
(and :with-test (= :version)))
8789
(re
8890
(>= 1.10.3))))
8991

ocamlformat.opam

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ depends: [
1212
"cmdliner" {>= "1.1.0"}
1313
"dune" {>= "2.8"}
1414
"ocamlformat-lib" {= version}
15+
"ocamlformat-rpc-lib" {with-test & = version}
1516
"re" {>= "1.10.3"}
1617
"odoc" {with-doc}
1718
]

test/unit/dune

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
(test
22
(name test_unit)
3+
(deps
4+
../passing/tests/partial.ml
5+
../passing/tests/format_invalid_files_with_locations.ml)
36
(package ocamlformat-lib)
47
(libraries alcotest base ocamlformat-lib))

vendor/parser-recovery/lib/dune

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323

2424
(rule
2525
(alias runtest)
26+
(package ocamlformat-lib)
2627
(action
2728
(diff recovery_parser.log recovery_parser.stderr)))

0 commit comments

Comments
 (0)