Skip to content

Conversation

@rgrinberg
Copy link
Member

By moving some of it to the common stanza module

This is also needed to obtain the package of every stanza in a consistent manner

@rgrinberg rgrinberg force-pushed the reduce-stanza-boilerplate branch from 3956d8d to 19dd43a Compare October 18, 2025 11:24
@Alizter
Copy link
Collaborator

Alizter commented Oct 18, 2025

Is it possible to move the map to List.singleton to the decode definition? It seems to always be used.

Signed-off-by: Rudi Grinberg <[email protected]>
@rgrinberg rgrinberg force-pushed the reduce-stanza-boilerplate branch from 19dd43a to 1f58b60 Compare October 18, 2025 19:30
@rgrinberg rgrinberg merged commit c71f0d1 into ocaml:main Oct 19, 2025
26 checks passed
davesnx added a commit to davesnx/dune that referenced this pull request Oct 22, 2025
…without-system

* 'main' of github.com:/ocaml/dune: (33 commits)
  Fix difference between bootstrap & dune behaviour w.r.t include-subdirs ambiguity (ocaml#12607)
  Revert "Fix difference between bootstrap & dune behaviour w.r.t include-subdirs ambiguity"
  fix(include-subdirs-qualified): prefer closer module of the same name
  Add 2 tests showing difference between bootstrap & dune w.r.t include-subdirs
  dune init: use source path (ocaml#12601)
  chore(deps): bump actions/setup-node from 5 to 6
  test(melange): show melange compilation isn't part of `@all` alias (ocaml#12603)
  Disable flaky test (ocaml#12600)
  Rename path to dir in dune_init (ocaml#12599)
  Dune project: remove dead code (ocaml#12598)
  Dune_project refactor (ocaml#12597)
  doc(melange): reference `dirs` stanza (ocaml#12596)
  Stanza simplifications (ocaml#12595)
  Reduce stanza definition boilerplate (ocaml#12592)
  Rename Stanza_common to Stanza_pkg (ocaml#12593)
  Remove copied code between library and library_parameter stanzas (ocaml#12594)
  Split modules settings (ocaml#12591)
  Move the (include_subdirs qualified) check to a single place (ocaml#12590)
  refactor: simplify loc/ocamllex/ocamlyacc stanza handling (ocaml#12589)
  pkg: Implement a package search command
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants