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

Bump Dune lang version to 3.18 #11175

Merged
merged 5 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
10 changes: 10 additions & 0 deletions doc/test/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@ is fine, but you then need to update the list of such exceptions below.

$ DUNE_LANG=$(dune internal latest-lang-version)
$ grep '(lang dune' ../*.rst | grep -v "$DUNE_LANG"
../coq.rst: (lang dune 3.17)
../coq.rst: (lang dune 3.17)
../foreign-code.rst: (lang dune 3.17)
../hacking.rst:``(lang dune 2.7)`` in their ``dune`` project file to use it.
../hacking.rst: (lang dune 3.17)
../instrumentation.rst: (lang dune 3.17)
../instrumentation.rst: (lang dune 3.17)
../melange.rst: (lang dune 3.17)
../sites.rst: (lang dune 3.17)
../sites.rst: (lang dune 3.17)
../sites.rst: (lang dune 3.17)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These probably need to be updated, as written in the description above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done.

../tests.rst: (lang dune 2.7)
2 changes: 1 addition & 1 deletion otherlibs/dune-rpc/private/types.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ end
module Version = struct
type t = int * int

let latest = 3, 17
let latest = 3, 18

let sexp : t Conv.value =
let open Conv in
Expand Down
2 changes: 1 addition & 1 deletion src/dune_lang/format.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let print_wrapped_list ~version x =
if version < (2, 8)
then Pp.char '(' ++ Pp.hovbox ~indent:1 inner ++ Pp.char ')'
else
(if version < (3, 17) then Pp.hvbox else Pp.hovbox)
(if version < (3, 18) then Pp.hvbox else Pp.hovbox)
~indent:1
(Pp.char '(' ++ inner ++ Pp.char ')')
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Allow directories to be installable
Leaving directory 'a'

$ cat a/_build/install/default/lib/foo/dune-package
(lang dune 3.17)
(lang dune 3.18)
(name foo)
(sections (lib .) (share ../../share/foo))
(files (lib (META dune-package)) (share ((dir bar) x y)))
Expand Down
4 changes: 2 additions & 2 deletions test/blackbox-tests/test-cases/dune-init.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ And the opam file will be generated as expected
doc: "https://url/to/documentation"
bug-reports: "https://github.com/username/reponame/issues"
depends: [
$dune {>= "3.17"}
$dune {>= "3.18"}
"ocaml"
"odoc" {with-doc}
]
Expand Down Expand Up @@ -494,7 +494,7 @@ And the opam file will be generated as expected
doc: "https://url/to/documentation"
bug-reports: "https://github.com/username/reponame/issues"
depends: [
"dune" {>= "3.17"}
"dune" {>= "3.18"}
"ocaml"
"odoc" {with-doc}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Begin by installing a library with C stubs.
Installing install/lib/libA/libA.cmxs
Installing install/lib/stublibs/dlllibA_stubs.so
$ cat ./install/lib/libA/dune-package
(lang dune 3.17)
(lang dune 3.18)
(name libA)
(sections
(lib
Expand Down
2 changes: 1 addition & 1 deletion test/blackbox-tests/test-cases/melange/basic-install.t
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Test that we can install melange mode libraries
]

$ cat ./_build/install/default/lib/foo/dune-package
(lang dune 3.17)
(lang dune 3.18)
(name foo)
(sections (lib .))
(files
Expand Down
4 changes: 2 additions & 2 deletions test/blackbox-tests/test-cases/pkg/implicit-dune-constraint.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ dependency.
Couldn't solve the package dependency formula.
Selected candidates: foo.0.0.1 x.dev
- dune -> (problem)
User requested = 3.17
User requested = 3.18
Rejected candidates:
dune.3.11.0: Incompatible with restriction: = 3.17
dune.3.11.0: Incompatible with restriction: = 3.18
[1]
$ test "4.0.0"
Solution for dune.lock:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ We are unable to pin projects that the version of dune doesn't understand.
Supported versions of this extension in version 100.1 of the dune language:
- 1.0 to 1.12
- 2.0 to 2.9
- 3.0 to 3.17
- 3.0 to 3.18
[1]
Loading