Skip to content

Commit 151f9aa

Browse files
committed
fix: merlin tests
Signed-off-by: Sachin Beniwal <s474996633@gmail.com>
1 parent 0b35a11 commit 151f9aa

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

test/blackbox-tests/test-cases/pkg/merlin/dev-tool-merlin-basic.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ a lockdir containing an "ocaml" lockfile.
1010

1111
$ cat > dune-project <<EOF
1212
> (lang dune 3.16)
13-
>
13+
>
1414
> (package
1515
> (name foo)
1616
> (allow_empty)

test/blackbox-tests/test-cases/pkg/merlin/dev-tool-merlin-env.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ executable in PATH is the one installed by dune as a dev tool.
99

1010
$ cat > dune-project <<EOF
1111
> (lang dune 3.16)
12-
>
12+
>
1313
> (package
1414
> (name foo)
1515
> (allow_empty)

test/blackbox-tests/test-cases/pkg/merlin/dev-tool-merlin-relock-on-ocaml-version-change.t

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ same version of the ocaml compiler as the code that it's analyzing.
1313

1414
$ cat > dune-project <<EOF
1515
> (lang dune 3.16)
16-
>
16+
>
1717
> (package
1818
> (name foo)
1919
> (allow_empty)
@@ -33,17 +33,27 @@ Initially merlin will depend on ocaml-base-compiler.5.2.0 to match the project.
3333
hello from fake ocamlmerlin
3434
$ cat "${dev_tool_lock_dir}"/ocaml-base-compiler.pkg
3535
(version 5.2.0)
36+
37+
(depends ocaml-compiler)
3638

3739
We can re-run "dune tools exec ocamlmerlin" without relocking or rebuilding.
3840
$ DUNE_CONFIG__LOCK_DEV_TOOL=enabled dune tools exec ocamlmerlin
41+
The version of the compiler package ("ocaml-base-compiler") in this project's
42+
lockdir has changed to 5.2.0 (formerly the compiler version was 5.2.0). The
43+
dev-tool "merlin" will be re-locked and rebuilt with this version of the
44+
compiler.
45+
Solution for _build/.dev-tools.locks/merlin:
46+
- merlin.0.0.1
47+
- ocaml-base-compiler.5.2.0
48+
- ocaml-compiler.5.2.0
3949
Running 'ocamlmerlin'
4050
hello from fake ocamlmerlin
4151

4252
Change the version of ocaml that the project depends on.
4353

4454
$ cat > dune-project <<EOF
4555
> (lang dune 3.16)
46-
>
56+
>
4757
> (package
4858
> (name foo)
4959
> (allow_empty)
@@ -68,3 +78,5 @@ before running. Merlin now depends on ocaml-base-compiler.5.1.0.
6878
hello from fake ocamlmerlin
6979
$ cat "${dev_tool_lock_dir}"/ocaml-base-compiler.pkg
7080
(version 5.1.0)
81+
82+
(depends ocaml-compiler)

0 commit comments

Comments
 (0)