Skip to content

Commit 00b9fd2

Browse files
committed
Bump dune lang version to 2.9
Signed-off-by: Craig Ferguson <me@craigfe.io>
1 parent 017d26f commit 00b9fd2

File tree

12 files changed

+21
-21
lines changed

12 files changed

+21
-21
lines changed

doc/dune-files.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contents of all configuration files read by Dune and looks like:
1212

1313
.. code:: scheme
1414
15-
(lang dune 2.8)
15+
(lang dune 2.9)
1616
1717
Additionally, they can contains the following stanzas.
1818

@@ -102,7 +102,7 @@ By default, executables defined via ``(executables(s) ...)`` or ``(test(s)
102102
common to give them empty interface files to strengthen the compiler's ability
103103
to detect unused values in these modules.
104104

105-
Starting from dune 2.8, an option is available to automatically generate empty
105+
Starting from dune 2.9, an option is available to automatically generate empty
106106
interface files for executables and tests that don't already have them:
107107

108108
.. code:: scheme
@@ -651,7 +651,7 @@ binary at the same place as where ``ocamlc`` was found.
651651
Executables can also be linked as object or shared object files. See
652652
`linking modes`_ for more information.
653653

654-
Starting from dune 2.8, it's possible to automatically generate empty interface
654+
Starting from dune 2.9, it's possible to automatically generate empty interface
655655
files for executables. See `executables_implicit_empty_intf`_.
656656

657657
``<optional-fields>`` are:
@@ -1365,7 +1365,7 @@ running dune runtest you can use the following stanza:
13651365
(libraries alcotest mylib)
13661366
(action (run %{test} -e)))
13671367
1368-
Starting from dune 2.8, it's possible to automatically generate empty interface
1368+
Starting from dune 2.9, it's possible to automatically generate empty interface
13691369
files for test executables. See `executables_implicit_empty_intf`_.
13701370

13711371
test
@@ -1949,7 +1949,7 @@ a typical ``dune-workspace`` file looks like:
19491949

19501950
.. code:: scheme
19511951
1952-
(lang dune 2.8)
1952+
(lang dune 2.9)
19531953
(context (opam (switch 4.07.1)))
19541954
(context (opam (switch 4.08.1)))
19551955
(context (opam (switch 4.11.1)))
@@ -1961,7 +1961,7 @@ containing exactly:
19611961

19621962
.. code:: scheme
19631963
1964-
(lang dune 2.8)
1964+
(lang dune 2.9)
19651965
(context default)
19661966
19671967
This allows you to use an empty ``dune-workspace`` file to mark the root of your

doc/hacking.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ Such languages must be enabled in the dune-project separately:
172172
173173
.. code:: scheme
174174
175-
(lang dune 2.8)
175+
(lang dune 2.9)
176176
(using coq 0.2)
177177
178178
If such extensions are experimental, it's recommended that they pass

doc/instrumentation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ To enable an instrumentation backend globally, you can type in your
7979

8080
.. code:: scheme
8181
82-
(lang dune 2.8)
82+
(lang dune 2.9)
8383
(instrument_with bisect_ppx)
8484
8585
or for each context individually:
8686

8787
.. code:: scheme
8888
89-
(lang dune 2.8)
89+
(lang dune 2.9)
9090
(context default)
9191
(context (default (name coverage) (instrument_with bisect_ppx)))
9292
(context (default (name profiling) (instrument_with landmarks)))

doc/opam.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ configuration will tell ``dune`` to generate two opam files: ``cohttp.opam`` and
9494

9595
.. code:: scheme
9696
97-
(lang dune 2.8)
97+
(lang dune 2.9)
9898
(name cohttp)
9999
; version field is optional
100100
(version 1.0.0)

doc/sites.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ consists of a name and a :ref:`section<install>` (e.g ``lib``, ``share``,
2626

2727
.. code:: scheme
2828
29-
(lang dune 2.8)
29+
(lang dune 2.9)
3030
(using dune_site 0.1)
3131
(name mygui)
3232
@@ -205,7 +205,7 @@ Main executable (C)
205205

206206
.. code:: scheme
207207
208-
(lang dune 2.8)
208+
(lang dune 2.9)
209209
(using dune_site 0.1)
210210
(name c)
211211
(package
@@ -256,7 +256,7 @@ One plugin (B)
256256

257257
.. code:: scheme
258258
259-
(lang dune 2.8)
259+
(lang dune 2.9)
260260
(using dune_site 0.1)
261261
(name b)
262262

doc/tests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ with a ``.t`` extension, so they must be enabled manually in the
479479
480480
.. code:: scheme
481481
482-
(lang dune 2.8)
482+
(lang dune 2.9)
483483
(cram enable)
484484
485485

src/dune_engine/dune_project.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ let parse ~dir ~lang ~opam_packages ~file ~dir_status =
707707
loc lang.syntax (2, 8) ~what:"This field"
708708
and+ executables_implicit_empty_intf =
709709
field_o_b "executables_implicit_empty_intf"
710-
~check:(Dune_lang.Syntax.since Stanza.syntax (2, 8))
710+
~check:(Dune_lang.Syntax.since Stanza.syntax (2, 9))
711711
and+ () = Dune_lang.Versioned_file.no_more_lang
712712
and+ generate_opam_files =
713713
field_o_b "generate_opam_files"

src/dune_engine/stanza.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Parser = struct
66
type nonrec t = string * t list Dune_lang.Decoder.t
77
end
88

9-
let latest_version = (2, 8)
9+
let latest_version = (2, 9)
1010

1111
let since v = (v, `Since v)
1212

test/blackbox-tests/test-cases/dune-ppx-driver-system.t/run.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ No ppx driver found
1111
$ dune build --root no-driver
1212
Entering directory 'no-driver'
1313
Info: Creating file dune-project with this contents:
14-
| (lang dune 2.8)
14+
| (lang dune 2.9)
1515
File "dune", line 5, characters 13-18:
1616
5 | (preprocess (pps)))
1717
^^^^^

test/blackbox-tests/test-cases/executables-implicit-empty-intf.t/run.t

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Executables with no corresponding `.mli` file will have one generated for them
22
by Dune:
33

44
$ cat >dune-project <<EOF
5-
> (lang dune 2.8)
5+
> (lang dune 2.9)
66
> (executables_implicit_empty_intf true)
77
> EOF
88

@@ -39,7 +39,7 @@ If an executable already has an interface, it is preserved:
3939
Generation of empty `.mli` files is disabled by default prior to lang 3.0:
4040

4141
$ dune clean
42-
$ echo >dune-project "(lang dune 2.8)"
42+
$ echo >dune-project "(lang dune 2.9)"
4343
$ dune build ./bin/executable.exe
4444
$ dune runtest
4545
$ test ! -f _build/default/bin/executable.mli

test/blackbox-tests/test-cases/jsoo/explicit-js-mode-anon.t/run.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Anonymous projects have explicit_js_mode enabled
22

33
$ dune build --display short @all
44
Info: Creating file dune-project with this contents:
5-
| (lang dune 2.8)
5+
| (lang dune 2.9)
66
ocamlc .foo.objs/byte/foo.{cmi,cmo,cmt}
77
ocamlopt .foo.objs/native/foo.{cmx,o}
88
ocamlc foo.cma

test/blackbox-tests/test-cases/meta-template-version-bug.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ custom version:
3131
[1]
3232

3333
$ cat ./_install/lib/foobarlib/dune-package
34-
(lang dune 2.8)
34+
(lang dune 2.9)
3535
(use_meta)
3636

3737
$ mkdir external

0 commit comments

Comments
 (0)