File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed
test/blackbox-tests/test-cases/pkg/merlin Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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
3739We 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
4252Change 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)
You can’t perform that action at this time.
0 commit comments