Skip to content

Commit

Permalink
Merge branch 'main' into melange/fix-melc-ppx
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Nov 28, 2022
2 parents f2b7a96 + 5a09827 commit c16eec2
Show file tree
Hide file tree
Showing 34 changed files with 543 additions and 189 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Unreleased
----------

- Format dune files when they are named `dune-file`. This occurs when we enable
the alternative file names project option. (#6566, @rgrinberg)

- Do not shadow library interface modules (#6549, fixes #6545, @rgrinberg)

- Move `$ dune ocaml-merlin -dump-config=$dir` to `$ dune ocaml merlin
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ ocamlformat.$$(awk -F = '$$1 == "version" {print $$2}' .ocamlformat) \
"ppx_expect.v0.15.0" \
ppx_inline_test \
ppxlib \
result \
ctypes \
"utop>=2.6.0" \
"melange>=0.3.0" \
"mel>=0.3.0" \
"melange>=0.3.1" \
"mel>=0.3.1"

# Dependencies recommended for developing dune locally,
# but not wanted in CI
Expand Down Expand Up @@ -74,7 +73,8 @@ dev-depext:

.PHONY: melange
melange:
opam pin add melange https://github.com/melange-re/melange.git#2f7a184400fd5d62c9160528a7ab4ce81874c024
opam pin add melange-compiler-libs https://github.com/melange-re/melange-compiler-libs.git#426463a77d0b70ecf0108c98e6a86d325cd01472
opam pin add melange https://github.com/melange-re/melange.git#685e546e290d317a884a4d48c7835467422c6426

dev-deps: melange
opam install -y $(TEST_DEPS)
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

(generate_opam_files true)

(accept_alternative_dune_file_name)

(strict_package_deps false)

; Reserved for Dune itself. This is to help with the bootstrap
Expand Down
126 changes: 90 additions & 36 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@
};

devShells.slim =
let pkgs = nix-overlays.legacyPackages.${system};
let
pkgs = nix-overlays.legacyPackages.${system}.appendOverlays [
(self: super: {
ocamlPackages = self.ocaml-ng.ocamlPackages_4_14;
})
melange.overlays.default
];
in
pkgs.mkShell {
nativeBuildInputs = with pkgs; [ pkg-config nodejs-slim ];
Expand Down
4 changes: 4 additions & 0 deletions otherlibs/configurator/test/blackbox-tests/dune
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
(package dune)
(package dune-configurator)))

(cram
(applies_to pkg-config-quoting)
(deps %{bin:pkg-config}))

(cram
(enabled_if
(<> %{ocaml-config:system} win))
Expand Down
5 changes: 4 additions & 1 deletion otherlibs/dune-rpc-lwt/src/dune_rpc_lwt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ module V1 = struct
(Fiber)
(struct
let read_file s : (string, exn) result Lwt.t =
Lwt_result.catch (Lwt_io.with_file ~mode:Input s Lwt_io.read)
Lwt.catch
(fun () ->
Lwt_result.ok (Lwt_io.with_file ~mode:Input s Lwt_io.read))
Lwt_result.fail

let analyze_path s =
Lwt.try_bind
Expand Down
Loading

0 comments on commit c16eec2

Please sign in to comment.