Skip to content

Commit

Permalink
dune: enforce version +3
Browse files Browse the repository at this point in the history
This enables more warnings and fixes opam metadata generation

Signed-off-by: Pau Ruiz Safont <[email protected]>
  • Loading branch information
psafont committed May 30, 2024
1 parent 842ce9f commit 5ab3899
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 28 deletions.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 2.0)
(lang dune 3.0)
(formatting (enabled_for ocaml))

(generate_opam_files true)
Expand Down
4 changes: 2 additions & 2 deletions message-switch-core.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"astring"
"cohttp" {>= "0.21.1"}
"ppx_deriving_rpc"
Expand All @@ -21,7 +21,7 @@ depends: [
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
5 changes: 3 additions & 2 deletions rrdd-plugin.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml"
"astring"
"rpclib"
Expand All @@ -21,9 +21,10 @@ depends: [
"xapi-stdext-unix" {= version}
"xapi-idl" {= version}
"xenstore_transport"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
5 changes: 3 additions & 2 deletions xapi-rrd-transport-utils.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml"
"cmdliner"
"rrd-transport" {= version}
"xapi-idl" {= version}
"xapi-rrd" {= version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
2 changes: 1 addition & 1 deletion xapi-rrdd-plugin.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is generated by dune, edit dune-project instead
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
5 changes: 3 additions & 2 deletions xapi-rrdd.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.02.0"}
"dune-build-info"
"astring"
Expand All @@ -28,9 +28,10 @@ depends: [
"xapi-rrd" {= version}
"xapi-stdext-threads" {= version}
"xapi-stdext-unix" {= version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions xapi-stdext-date.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.12"}
"alcotest" {with-test}
"astring"
Expand All @@ -16,7 +16,7 @@ depends: [
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions xapi-stdext-encodings.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.13.0"}
"alcotest" {>= "0.6.0" & with-test}
"odoc" {with-doc}
Expand All @@ -16,7 +16,7 @@ depends: [
"notty" {with-test}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions xapi-stdext-pervasives.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.08"}
"logs"
"odoc" {with-doc}
"xapi-backtrace"
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions xapi-stdext-std.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.08.0"}
"alcotest" {with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions xapi-stdext-threads.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml"
"base-threads"
"base-unix"
"odoc" {with-doc}
"xapi-stdext-pervasives" {= version}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions xapi-stdext-unix.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.12.0"}
"base-unix"
"fd-send-recv" {>= "2.0.0"}
Expand All @@ -16,7 +16,7 @@ depends: [
"xapi-stdext-pervasives" {= version}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions xapi-stdext-zerocheck.opam
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml"
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
5 changes: 3 additions & 2 deletions xapi-tracing-export.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"ocaml"
"cohttp-posix"
"dune"
"dune" {>= "3.0"}
"cohttp"
"rpclib"
"ppx_deriving_rpc"
Expand All @@ -21,9 +21,10 @@ depends: [
"xapi-stdext-unix" {= version}
"xapi-tracing" {= version}
"zstd" {= version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
5 changes: 3 additions & 2 deletions xapi-tracing.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ homepage: "https://xapi-project.github.io/"
bug-reports: "https://github.com/xapi-project/xen-api/issues"
depends: [
"ocaml"
"dune"
"dune" {>= "3.0"}
"alcotest" {with-test}
"re"
"uri"
"uuid" {with-test}
"xapi-log" {= version}
"xapi-stdext-threads" {= version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down

0 comments on commit 5ab3899

Please sign in to comment.