Skip to content

Use (format-dune-file) instead of dune format-dune-file #1338

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 3.7)
(lang dune 3.18)

(name odoc)

Expand Down
2 changes: 1 addition & 1 deletion odoc-bench.opam
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ depends: [
"astring"
"cmdliner" {>= "1.3.0"}
"cppo" {build & >= "1.1.0"}
"dune" {>= "3.7.0"}
"dune" {>= "3.18.0"}
"fpath"
"ocaml" {>= "4.02.0"}
"result"
Expand Down
2 changes: 1 addition & 1 deletion odoc-driver.opam
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ documentation for installed packages.
depends: [
"ocaml" {>= "5.1.0"}
"odoc" {= version}
"dune" {>= "3.7.0"}
"dune" {>= "3.18.0"}
"odoc-md"
"bos"
"fpath"
Expand Down
2 changes: 1 addition & 1 deletion odoc-md.opam
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This package provides support for generating documentation from Markdown files.
depends: [
"ocaml" {>= "4.14.0"}
"odoc" {= version}
"dune" {>= "3.7.0"}
"dune" {>= "3.18.0"}
"cmarkit"
]

Expand Down
2 changes: 1 addition & 1 deletion odoc-parser.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dev-repo: "git+https://github.com/ocaml/odoc.git"
doc: "https://ocaml.github.io/odoc/odoc_parser"
flags: [ avoid-version ]
depends: [
"dune" {>= "3.7"}
"dune" {>= "3.18"}
"ocaml" {>= "4.08.0" & < "5.4"}
"astring"
"result"
Expand Down
2 changes: 1 addition & 1 deletion odoc.opam
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ depends: [
"astring"
"cmdliner" {>= "1.3.0"}
"cppo" {build & >= "1.1.0"}
"dune" {>= "3.7.0"}
"dune" {>= "3.18.0"}
"fpath"
"ocaml" {>= "4.08.0" & < "5.4"}
"result"
Expand Down
9 changes: 5 additions & 4 deletions test/generators/dune
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
(>= %{ocaml_version} 4.04))
(action
(with-stdout-to
link.dune.inc.gen
(pipe-stdout
(run gen_rules/gen_rules.exe)
(run dune format-dune-file)))))
link.dune.inc.gen.raw
(run gen_rules/gen_rules.exe))))

(rule
(format-dune-file link.dune.inc.gen.raw link.dune.inc.gen))

(rule
(alias runtest)
Expand Down
Loading