Repository navigation
doc(changes): document that actions must declare the packages they use - #16859
Merged
Merged
Conversation
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]>
62 tasks done
Alizter
approved these changes
Nov 1, 2026
shonfeder
added a commit
that referenced
this pull request
Nov 2, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Since #14373, actions no longer see
_build/install/<context>/{bin,lib,lib/stublibs}onPATH,OCAMLPATH, orCAML_LD_LIBRARY_PATHunless 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