-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Alpha DIALLO <[email protected]>
- Loading branch information
1 parent
64bcacf
commit f515fa8
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
$ . ./helpers.sh | ||
|
||
$ mkrepo | ||
$ make_mock_tool_package odoc odoc | ||
$ make_mock_tool_package ocaml-lsp-server ocamllsp | ||
$ make_mock_tool_package ocamlformat ocamlformat | ||
$ mkpkg ocaml 5.2.0 | ||
|
||
$ cat > dune-workspace <<EOF | ||
> (lang dune 3.16) | ||
> (lock_dir | ||
> (path "dev-tools.locks/odoc") | ||
> (repositories mock)) | ||
> (lock_dir | ||
> (path "dev-tools.locks/ocamlformat") | ||
> (repositories mock)) | ||
> (lock_dir | ||
> (path "dev-tools.locks/ocaml-lsp-server") | ||
> (repositories mock)) | ||
> (lock_dir | ||
> (repositories mock)) | ||
> (repository | ||
> (name mock) | ||
> (source "file://$(pwd)/mock-opam-repository")) | ||
> EOF | ||
|
||
$ cat > dune-project <<EOF | ||
> (lang dune 3.16) | ||
> | ||
> (package | ||
> (name foo) | ||
> (depends ocaml)) | ||
> EOF | ||
|
||
$ dune pkg lock | ||
Solution for dune.lock: | ||
- ocaml.5.2.0 | ||
$ DUNE_CONFIG__LOCK_DEV_TOOL=enabled dune tools install | ||
Solution for dev-tools.locks/ocamlformat: | ||
- ocamlformat.0.0.1 | ||
Solution for dev-tools.locks/odoc: | ||
- ocaml.5.2.0 | ||
- odoc.0.0.1 | ||
Solution for dev-tools.locks/ocaml-lsp-server: | ||
- ocaml.5.2.0 | ||
- ocaml-lsp-server.0.0.1 | ||
$ ls ./_build/_private/default/.dev-tool | ||
ocaml-lsp-server | ||
ocamlformat | ||
odoc |