Skip to content

fix(melange): add original source dep during preprocessing - #15395

Merged
anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:anmonteiro/fix-melange-regression-ppx-loc-filename
Jul 1, 2026
Merged

anmonteiro merged 1 commit into
ocaml:mainfrom
anmonteiro:anmonteiro/fix-melange-regression-ppx-loc-filename

Conversation

@anmonteiro

Copy link
Copy Markdown
Collaborator

No description provided.

@anmonteiro anmonteiro added the melange Melange rules and generator label Jul 1, 2026
@anmonteiro
anmonteiro merged commit d71b84a into ocaml:main Jul 1, 2026
29 checks passed
@anmonteiro
anmonteiro deleted the anmonteiro/fix-melange-regression-ppx-loc-filename branch July 1, 2026 09:14
@anmonteiro

Copy link
Copy Markdown
Collaborator Author

hey @shonfeder, just wanted to put this one on your radar for the next patch release, too.

the regression test lives here: #15393

@shonfeder

Copy link
Copy Markdown
Member

Thanks, @anmonteiro. If you want it in the release notes, don't forget to add a changelog entry!

@anmonteiro

Copy link
Copy Markdown
Collaborator Author

absolutely, i had a local commit i forgot to push, will do until EOD today!

anmonteiro added a commit that referenced this pull request Jul 2, 2026
Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro anmonteiro mentioned this pull request Jul 7, 2026
56 tasks done
@shonfeder shonfeder added the regression A defect in previously working behavior, generally breaks existing user workflows label Jul 7, 2026
@Alizter Alizter added this to the 3.25.0 milestone Jul 8, 2026
anmonteiro added a commit that referenced this pull request Jul 20, 2026
avsm pushed a commit to ocaml/opam-repository that referenced this pull request Jul 23, 2026
CHANGES:

### Fixed

- Fix an internal error (`modules_and_obj_dir: failed lookup`) when generating
  `js_of_ocaml` archive rules for a dune file that defines two libraries with
  the same name distinguished by mutually exclusive `enabled_if` clauses, as
  `ocaml-re` does for `ppx_expect_common` (ocaml/dune#14904, fixes ocaml/dune#14775, @vouillon)

- Fix passing environment variables to formatter actions  (ocaml/dune#15386, @anmonteiro)

- Fix missing source dependency in the sandbox when preprocessing Melange
  sources (ocaml/dune#15395, @anmonteiro)

- Treat OCaml compiler packages version 5.5 or newer as relocatable so their
  installations do not use the toolchain cache (ocaml/dune#15444, fixes ocaml/dune#15443, @Alizter)

- Fix `build_runtime_flags` given in a `js_of_ocaml`/`wasm_of_ocaml` field of
  an executable being silently ignored in separate compilation mode: such
  executables were given the workspace-shared standalone runtime, which is
  built with the default flags. Executables customizing `build_runtime_flags`
  now get their own standalone runtime again. (ocaml/dune#15455, @hhugo)

- Use installed filenames for local package binaries in `%{bin:...}` PATH
  layouts on Windows (ocaml/dune#15518, fixes ocaml/dune#15512, @Alizter)

### Changed

- Revert sandboxing Melange rules by default in the `(library ..)` and
  `(melange.emit ..)` stanzas. In Melange libraries with many modules, sandbox
  creation / destruction dominates build time and adds significant overhead to
  build time (ocaml/dune#15418, @anmonteiro)
craff pushed a commit to craff/opam-repository that referenced this pull request Jul 25, 2026
CHANGES:

### Fixed

- Fix an internal error (`modules_and_obj_dir: failed lookup`) when generating
  `js_of_ocaml` archive rules for a dune file that defines two libraries with
  the same name distinguished by mutually exclusive `enabled_if` clauses, as
  `ocaml-re` does for `ppx_expect_common` (ocaml/dune#14904, fixes ocaml/dune#14775, @vouillon)

- Fix passing environment variables to formatter actions  (ocaml/dune#15386, @anmonteiro)

- Fix missing source dependency in the sandbox when preprocessing Melange
  sources (ocaml/dune#15395, @anmonteiro)

- Treat OCaml compiler packages version 5.5 or newer as relocatable so their
  installations do not use the toolchain cache (ocaml/dune#15444, fixes ocaml/dune#15443, @Alizter)

- Fix `build_runtime_flags` given in a `js_of_ocaml`/`wasm_of_ocaml` field of
  an executable being silently ignored in separate compilation mode: such
  executables were given the workspace-shared standalone runtime, which is
  built with the default flags. Executables customizing `build_runtime_flags`
  now get their own standalone runtime again. (ocaml/dune#15455, @hhugo)

- Use installed filenames for local package binaries in `%{bin:...}` PATH
  layouts on Windows (ocaml/dune#15518, fixes ocaml/dune#15512, @Alizter)

### Changed

- Revert sandboxing Melange rules by default in the `(library ..)` and
  `(melange.emit ..)` stanzas. In Melange libraries with many modules, sandbox
  creation / destruction dominates build time and adds significant overhead to
  build time (ocaml/dune#15418, @anmonteiro)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

melange Melange rules and generator regression A defect in previously working behavior, generally breaks existing user workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants