Skip to content

fix(patch): treat empty patch as no-op - #16519

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
shunueda:fix/treat-empty-patch-as-noop
Oct 4, 2026
Merged

rgrinberg merged 1 commit into
ocaml:mainfrom
shunueda:fix/treat-empty-patch-as-noop

Conversation

@shunueda

@shunueda shunueda commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Opam treats an empty patch as a no-op. This patch makes Dune match Opam's behavior.

https://github.com/ocaml/opam/blob/18a8abc5b138bc5c3bc139985e583b9d44262e8b/src/core/opamPatch.ml#L355

Checklist

  • Tests added, if applicable.
  • Change log entry added for any user-facing changes.
  • Documentation added for any user-facing changes.

@shunueda
shunueda force-pushed the fix/treat-empty-patch-as-noop branch from 2a0a139 to 72e03e4 Compare October 1, 2026 15:43
@shunueda shunueda changed the title fix(patch): treat empty patch as noop fix(patch): treat empty patch as no-op Oct 1, 2026
@shunueda
shunueda force-pushed the fix/treat-empty-patch-as-noop branch from 72e03e4 to ae502d5 Compare October 1, 2026 15:44
@rgrinberg

Copy link
Copy Markdown
Member

Mind submitting the tests separately first? That would help us merge your work faster.

@shunueda
shunueda force-pushed the fix/treat-empty-patch-as-noop branch 2 times, most recently from 77c02a0 to 88839e7 Compare October 2, 2026 13:10
@shunueda
shunueda force-pushed the fix/treat-empty-patch-as-noop branch 5 times, most recently from 92a895e to 8c8c8cd Compare October 3, 2026 17:13
@shunueda
shunueda force-pushed the fix/treat-empty-patch-as-noop branch from 8c8c8cd to 7bb036e Compare October 3, 2026 17:19
@rgrinberg
rgrinberg merged commit fe79a76 into ocaml:main Oct 4, 2026
37 checks passed
@Alizter Alizter added this to the 3.26.0 milestone Oct 4, 2026
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.

3 participants