Skip to content

doc(changes): document that actions must declare the packages they use - #16859

Merged
shonfeder merged 1 commit into
mainfrom
changelog-14373-declare-packages
Nov 1, 2026
Merged

shonfeder merged 1 commit into
mainfrom
changelog-14373-declare-packages

Conversation

@shonfeder

Copy link
Copy Markdown
Member

Description

Since #14373, actions no longer see _build/install/<context>/{bin,lib,lib/stublibs} on PATH, OCAMLPATH, or CAML_LD_LIBRARY_PATH unless they declare the packages they use with (deps (package <pkg>)). This effects a breaking change, which was originally noted in the changelog, but was dropped when the entry was rewritten in c5ad5cc. As a result, the 3.25 changelog doesn't currently tell users why tests that require the package under test start failing, or what to do about it.

This restores the note as its own bullet, next to the one on library closures, and announces it as a breaking change.

Related Issue and Motivation

Context explaining both how this change causes breakage, and why the behavior is intended, can be found at #16617. There are also a number of related upstream fixes and test bounds in opam-repository (e.g., ocaml/opam-repository#31051).

I'll cherry pick this onto the RC for #15593 once merged.

Checklist

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

Since #14373, actions no longer get the install staging area
(_build/install/<context>/{bin,lib,lib/stublibs}) on PATH, OCAMLPATH, or
CAML_LD_LIBRARY_PATH unless they declare the packages they use with
(deps (package <pkg>)). This needs to be noted as a breaking change.

Signed-off-by: Shon Feder <[email protected]>
@shonfeder
shonfeder requested a review from Alizter October 30, 2026 18:09
@shonfeder shonfeder mentioned this pull request Oct 30, 2026
62 tasks done
@shonfeder
shonfeder merged commit 2b2eb3e into main Nov 1, 2026
38 checks passed
@shonfeder
shonfeder deleted the changelog-14373-declare-packages branch November 1, 2026 20:43
@Alizter Alizter added this to the 3.26.0 milestone Nov 2, 2026
shonfeder added a commit that referenced this pull request Nov 2, 2026
Backport #16859 onto 3.25.0-rc
anmonteiro pushed a commit to anmonteiro/dune that referenced this pull request Nov 14, 2026
ocaml#16859)

Since ocaml#14373, actions no longer see
`_build/install/<context>/{bin,lib,lib/stublibs}` on `PATH`,
`OCAMLPATH`, or `CAML_LD_LIBRARY_PATH` unless they declare the packages
they use with `(deps (package <pkg>))`. This effects a breaking change,
which was originally noted in the changelog, but was dropped when the
entry was rewritten in c5ad5cc. As a result, the 3.25 changelog
doesn't currently tell users why tests that require the package under
test start failing, or what to do about it.

This restores the note as its own bullet, next to the one on library
closures, and announces it as a breaking change.

## Related Issue and Motivation

Context explaining both how this change causes breakage, and why the
behavior is intended, can be found at ocaml#16617. There are also a number of
related upstream fixes and test bounds in opam-repository (e.g.,
ocaml/opam-repository#31051).

I'll cherry pick this onto the RC for
ocaml#15593 once merged.

(cherry picked from commit 2b2eb3e)
Signed-off-by: Shon Feder <[email protected]>
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